Zookeeper集群搭建- 奇葩问题解决1

来源:互联网 发布:vip影视盒子源码 编辑:程序博客网 时间:2024/05/21 13:16

在搭建Zookeeper集群时如遇到 Cannot open channel to 3 at election address node2/****:2888

除开网络等问题,需要查看zoo.cfg中的当前节点IP是不是设置成0.0.0.0:2888:3888,如

当前节点属于myid=1

server.1=0.0.0.0:2888:3888

server.2=192.168.109.141:2888:3888

server.3=192.168.109.142:2888:3888


当前节点属于myid=2

server.1=192.168.109.140:2888:3888

server.2=0.0.0.0:2888:3888

server.3=192.168.109.142:2888:3888


这个比较奇葩 ,解决完什么dataDir路径问题,防火墙问题后,就有可能 是这个原因


歪果仁的解决:http://stackoverflow.com/questions/30940981/zookeeper-error-cannot-open-channel-to-x-at-election-address

0 0