zookeeper安装失败Session 0x0 for server null, unexpected error, closing socket connection and attempting

2018-10-25 14:55:38,507  INFO [ClientCnxn.java:966] : Opening socket connection to server 192.168.3.71/192.168.3.71:2181. Will not attempt to authenticate using SASL (unknown error)
2018-10-25 14:55:59,509  WARN [ClientCnxn.java:1089] : 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:350)
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)

需要关注的是端口号是否正确
在这里插入图片描述
由于我连接的是本地网络,所以端口号应该改为“127.0.0.1”
注意:改完端口号后一档以重新启动“zkServer.cmd”
另外,出于安全考虑我并没有关闭防火墙,但是并不影响zookeeper启动运行
ps:zookeeper安装失败Session 0x0 for server null, unexpected error, closing socket connection and attempting_第1张图片

你可能感兴趣的:(zookeeper安装失败Session 0x0 for server null, unexpected error, closing socket connection and attempting)