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

Posted 华电少年

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于Zookeeper启动失败,报错 can not open chanel to 2的主要内容,如果未能解决你的问题,请参考以下文章

解决Vue启动失败报错:Module not found: Error: Can‘t resolve ‘less-loader‘

启动Zookeeper报错:Error contacting service. It is probably not running.

查看zookeeper集群服务器启动状态报错“Error contacting service. It is probably not running.“

elasticsearch启动报错:can not run elasticsearch as root

sonar6.7启动报错: can not run elasticsearch as root

Zookeeper群起脚本启动失败及查看状态出现:Error contacting service. It is probably not running