Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

拉分支配项目环境,Tomcat启动报错如下:

2018-11-05 16:06:49,837 WARN  [org.apache.zookeeper.ClientCnxn] - 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:739)
	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)

原因:zk连接地址错误,检查发现所有provider的zk地址端口都正确,但是漏了restful项目的zk地址配置没改,改过来就好了。

zookeeperAddr=zookeeper://127.0.0.1:2181

猜你喜欢

转载自blog.csdn.net/qq_29410905/article/details/83751337