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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM