Zookeeper(2)Solve the Problem on Redhat

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:


你可能感兴趣的:(zookeeper)