老师在启动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)2018100218:16:28,358[myid:]WARN[mainSendThread(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,多跟着视频对比一下

0
0

Spring Boot短视频小程序开发 全栈式实战项目

一门课程带你搞定短视频小程序全栈开发,毕业设计之利器!

2613 学习 · 1952 问题

查看课程