Zookeeper启动失败,报错 can not open chanel to 2


zookeeper 3.4.8 安装在 7 台不同的虚拟机上,配置文件如下:

tickTime=2000
initLimit=10
syncLimit=5
dataDir=/var/zookeeper
clientPort=2181
server.1=master1:2888:3888
server.2=master2:2888:3888
server.3=slave1:2888:3888
server.4=slave2:2888:3888
server.5=slave3:2888:3888
server.6=slave4:2888:3888
server.7=slave5:2888:3888

myid文件全部配置正确,防火墙已经关闭,但是启动时报出如下错误:

Cannot open channel to 6 at election address slave4......

不仅仅是 slave4,全部的节点都出现这个错误。

经过一番百度,终于在万能的stackoverflow上找到了答案,每个当前节点要把自己的IP地址设置为0.0.0.0

原文链接:http://stackoverflow.com/questions/30940981/zookeeper-error-cannot-open-channel-to-x-at-election-address


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM