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

被折叠的 条评论
为什么被折叠?



