zookeeper集群启动报错:Cannot open channel to * at election address /ip:3888
Posted cirrus2011
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
以上是关于zookeeper集群启动报错:Cannot open channel to * at election address /ip:3888的主要内容,如果未能解决你的问题,请参考以下文章
查看zookeeper集群服务器启动状态报错“Error contacting service. It is probably not running.“
zookeeper启动时报Cannot open channel to X at election address Error contacting service. It is probably n