其他分享
首页 > 其他分享> > zookeeper集群启动报错:Cannot open channel to * at election address /ip:3888

zookeeper集群启动报错:Cannot open channel to * at election address /ip:3888

作者:互联网

zookeeper集群启动报错:Cannot open channel to * at election address /ip:3888

2018年04月06日 20:52:55 中单大魔王 阅读数:729 标签: zookeeper

下面几点需要注意的:

1、确认在每个$zookeeper_home/data/myid中有对应数字

2、是否关闭防火墙:systemctl stop firewalld,systemctl disable firewalld

3、zoo.cfg中的server需要写成以下形式的:

    假如有两台机器,192.168.1.1和192.168.1.2,它们的myid分别是1和2;

    192.168.1.1的zoo.cfg(其它属性的配置还按照原有的配置):

    server.1=0.0.0.0:2888:3888

    server.2=192.168.1.2:2888:3888

    192.168.1.2的zoo.cfg(其它属性的配置还按照原有的配置):

    server.1=192.168.1.1:2888:3888

    server.2=0.0.0.0:2888:3888

标签:1.2,ip,2888,zookeeper,3888,192.168,报错,0.0
来源: https://www.cnblogs.com/cirrus2011/p/11296648.html