Zookeeper error: Cannot open channel to X at election address

前端 未结 10 1227
你的背包
你的背包 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条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 06:44

    We faced the same issue , for our case the root cause of the problem is too-many number of client connections . The default ulimit on aws ec2 instance is 1024 and this causes zookeeper nodes not able to communicate with each other .

    The fix for this is change the ulimit to a higher number -> (> ulimit -n 20000 ) stop and start zookeeper.

提交回复
热议问题