zookeeper 集群不同步

漫雪信步 漫雪信步 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
zoo.cgf:
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
server.1=kafka1:2888:3888
server.2=kafka2:2888:3888
server.3=kafka3:2888:3888

这三台机的配置都一样的,myid 三台机设置1,2,3
现在的情况是1和3是能同步的,但是2是同步不了的,同时2在启动的时候日志上并没有同步信息,查进程已经启动了,但查状态是[root@kafka2 bin]# ./zkServer.sh status
JMX enabled by default
Using config: /home/zookeeper-3.3.4/bin/../conf/zoo.cfg
Server is running at :2181
Error contacting service. It is probably not running.
这是怎么回事,大神啊
...全文

相关推荐

评论
收藏 已收藏
分享
返回顶部
漫雪信步
中间件 1,237 成员 6,839 内容