Zookeeper error: Cannot open channel to X at election address

前端 未结 10 1254
你的背包
你的背包 2020-12-13 06:15

I have installed zookeeper in 3 different aws servers. The following is the configuration in all the servers

tickTime=2000
initLimit=10
syncLimit=5
dataDir=/         


        
10条回答
  •  旧时难觅i
    2020-12-13 06:46

    How have defined the ip of the local server in each node? If you have given the public ip, then the listener would have failed to connect to the port. You must specify 0.0.0.0 for the current node

    server.1=0.0.0.0:2888:3888
    server.2=192.168.10.10:2888:3888
    server.3=192.168.2.1:2888:3888
    

    This change must be performed at the other nodes too.

提交回复
热议问题