我是在eclipse上引用dubbo服务连接zookeeper时出现了问题,问题代码如下:
2017-08-30 20:44:22,156 [localhost-startStop-1] [org.apache.zookeeper.ClientCnxn]-[DEBUG] zookeeper.disableAutoWatchReset is false
2017-08-30 20:44:22,182 [localhost-startStop-1] [org.I0Itec.zkclient.ZkClient]-[DEBUG] Awaiting connection to Zookeeper server
2017-08-30 20:44:22,192 [localhost-startStop-1-SendThread(192.168.139.176:9090)] [org.apache.zookeeper.ClientCnxn]-[INFO] Opening socket connection to server 192.168.139.176/192.168.139.176:9090. Will not attempt to authenticate using SASL (unknown error)
2017-08-30 20:44:23,195 [localhost-startStop-1-SendThread(192.168.139.176:9090)] [org.apache.zookeeper.ClientCnxn]-[WARN] Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused: 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)
2017-08-30 20:44:23,197 [localhost-startStop-1-SendThread(192.168.139.176:9090)] [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)
2017-08-30 20:44:23,197 [localhost-startStop-1-SendThread(192.168.139.176:9090)] [org.apache.zookeeper.ClientCnxnSocketNIO]-[DEBUG] Ignoring exception during shutdown output
之后就是无限循环最后那个异常。有没有大神能帮忙解决这个问题?
有关zookeeper连接的问题
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-