zookeeper报错[org.apache.zookeeper.ClientCnxnSocketNIO]-[DEBUG] Ignoring exception during

异常信息:
2018-08-22 09:51:24,926 [localhost-startStop-1-SendThread(192.168.43.31:2181)] [org.apache.zookeeper.ClientCnxn]-[WARN] Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
2018-08-22 09:51:24,930 [localhost-startStop-1-SendThread(192.168.43.31:2181)] [org.apache.zookeeper.ClientCnxnSocketNIO]-[DEBUG] Ignoring exception during shutdown input
java.nio.channels.ClosedChannelException
at sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:780)
at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:399)
at org.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:200)
at org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1246)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1170)
2018-08-22 09:51:24,930 [localhost-startStop-1-SendThread(192.168.43.31:2181)] [org.apache.zookeeper.ClientCnxnSocketNIO]-[DEBUG] Ignoring exception during shutdown output
java.nio.channels.ClosedChannelException
at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:797)
at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:407)
at org.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:207)
at org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1246)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1170)
2018-08-22 09:51:26,039 [localhost-startStop-1-SendThread(192.168.43.31:2181)] [org.apache.zookeeper.ClientCnxn]-[INFO] Opening socket connection to server 192.168.43.31/192.168.43.31:2181. Will not attempt to authenticate using SASL (unknown error)
2018-08-22 09:51:47,032 [localhost-startStop-1-SendThread(192.168.43.31:2181)] [org.apache.zookeeper.ClientCnxn]-[WARN] Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

异常原因:
Linux防火墙未关闭
解决方法:
zookeeper报错[org.apache.zookeeper.ClientCnxnSocketNIO]-[DEBUG] Ignoring exception during_第1张图片
再启动tomcat,成功!

你可能感兴趣的:(zookeeper报错[org.apache.zookeeper.ClientCnxnSocketNIO]-[DEBUG] Ignoring exception during)