问题描述一:
Cannot open channel to 2 at election address /192.168.60.132:3888
解决方案:
查看zookeeper配置文件zoo.cfg / zoo_sample.cfg中集群配置部分
server.1=zoo1-net1:2888:3888|zoo1-net2:2889:3889
server.2=zoo2-net1:2888:3888|zoo2-net2:2889:3889
server.3=zoo3-net1:2888:3888|zoo3-net2:2889:3889
这里server.1后面的 =
前后注意不要有空格
问题描述二:
Unable to read additional data from server sessionid 0x0, likely server has closed socket
这里是网路通信问题
解决方案:
关闭各个节点主机之间的防火墙,如果单主机多节点构成的集群请省略,请另谋高就
查看防火墙状态
systemctl status firewalld停止防火墙
systemctl stop firewalld永久关闭防火墙
systemctl disable firewalld