老师在启动zookeeper,./zkCli.sh时候连接客户端
来源:9-18 zookeeper客户端的介绍

慕斯0913745
2018-10-02
2018-10-02 18:16:28,357 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxnSendThread@1035]−Openingsocketconnectiontoserverlocalhost/127.0.0.1:2181.WillnotattempttoauthenticateusingSASL(unknownerror)2018−10−0218:16:28,358[myid:]−WARN[main−SendThread(localhost:2181):ClientCnxnSendThread@1035] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2018-10-02 18:16:28,358 [myid:] - WARN [main-SendThread(localhost:2181):ClientCnxnSendThread@1035]−Openingsocketconnectiontoserverlocalhost/127.0.0.1:2181.WillnotattempttoauthenticateusingSASL(unknownerror)2018−10−0218:16:28,358[myid:]−WARN[main−SendThread(localhost:2181):ClientCnxnSendThread@1165] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
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:1144)
1回答
-
风间影月
2018-10-02
连接拒绝,是不是没装好?环境因素等。不要忘记zoo.cfg,多跟着视频对比一下
00
相似问题