Zookeeper(2)Solve the Problem on Redhat

本文记录了解决Zookeeper集群中节点间同步超时的问题过程。通过调整配置文件中的参数,如ckTime、initLimit等,并将节点设置为localhost,最终解决了节点间的同步问题。此外,还介绍了如何使用Win7客户端成功连接到Redhat服务器。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Zookeeper(2)Solve the Problem on Redhat

I happened to see the log message on Zookeeper/conf/zookeeper.out file.

The 3 nodes are keeping try to syncnized other nodes. But they got the timeout message.

So I guess the problem is coming from the configuration files. I change them as follow:
ckTime=2000
initLimit=10
syncLimit=5
dataDir=/tmp/zookeeper/snapshot/d_1
clientPort=2181
server.1=localhost:2888:3888
server.2=localhost:2889:3889
server.3=localhost:2890:3890

The purpose for this change is to make the nodes know each other as localhost.

Then I use my win7 client to connect to the redhat server. It works fine.


references:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值