Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing

登录zk报错:
Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing_第1张图片
查看
从zoo.cfg看下datadir,将下面的myid改成和zoo.cfg里的自己一样的。比如xx是

server.1=xx:2888:3888
server.2=yy:2888:3888
server.3=zz:2888:3888
那么它的myid必须是1

查看本机的myid
cat /data/zookeeper/data/myid
3
这里是3但是本机节点是XX,所以要改成1

你可能感兴趣的:(服务器,linux,运维)