zookeeper相关报错解决

1.
 Unable to read additional data from server sessionid 0×0, likely server has closed socket, closing socket connection and attempting reconnect 
org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1000) Opening socket connection to server localhost/127.0.0.1:2181 

这个报错是因为zookeeper配置了集群模式,但是只启动了一个节点,只会剩下一个leader,那么如果有再有客户端连接上来,将无法工作,并且剩下的leader服务器会不断的抛出异常。

你可能感兴趣的:(zookeeper)