关于- Opening socket connection to

作者: 白天喝咖啡 | 来源:发表于2019-12-09 19:41 被阅读0次

java.net.ConnectException: 拒绝连接

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)

2019-12-09 19:29:53,892 [myid:] - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@1032] - Opening socket connection  server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)

2019-12-09 19:29:53,893 [myid:] - WARN  [main-SendThread(localhost:2181):ClientCnxn$SendThread@1162] - Session 0x0 for server nul unexpected error, closing socket connection and attempting reconnect


这个错误我查了好久,后来发现是没有执行bin/zkServer.sh start,启动zookeeper.

然后就启动客户端了bin/zkCli.sh

相关文章

网友评论

    本文标题:关于- Opening socket connection to

    本文链接:https://www.haomeiwen.com/subject/uveigctx.html