Zookeeper cluster startup error: Cannot open channel to * at election address /ip:3888

zookeeper cluster startup error: Cannot open channel to * at election address /ip:3888

2018年04月06日20: 52:55 Zhongdan Big Devil Reads: 729 Tags: zookeeper

The following points need to be noted:

1, confirm that there is a corresponding number in each $zookeeper_home/data/myid

2 Whether to turn off the firewall: systemctl stop firewalld, systemctl disable firewalld

3, the server in zoo.cfg needs to be written in the following form:

If there are two machines, 192.168.1.1 and 192.168.1.2, their Myid is 1 and 2; zoo.cfg of

192.168.1.1 (the configuration of other properties is also in accordance with the original configuration): zoo.cfg of

    server.1=0.0.0.0:2888:3888

    server.2=192.168.1.2:2888:3888

192.168.1.2 (the configuration of other properties is also in accordance with the original Some configurations):

    server.1=192.168.1.1:2888:3888

    server.2=0.0.0.0:2888:3888