ZooKeeper报警告Unable to read additional data from server sessionid, likely server has closed socket的解决方法

原因:

由于有多台ZooKeeper,同时断开连接偶尔会有些网络异常是正常的,不需要理会。如果有洁癖或强迫症,见以下方法。

方法:

* 所有ZooKeeper机器都要执行该步骤

编辑zoo.cfg文件:

vim zookeeper/conf/zoo.cfg

追加以下2行(或反注释后修改其值):

autopurge.snapRetainCount=10
autopurge.purgeInterval=1

 

posted @ 2022-01-19 00:18  Sininsis  阅读(5120)  评论(0)    收藏  举报