Zookeeper error: Cannot open channel to X at election address

前端 未结 10 1252
你的背包
你的背包 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:55

    This is what worked for me

    Step 1:
    Node 1:
    zoo.cfg
    server.1= 0.0.0.0::
    server.2= ::
    .
    .
    .
    server.n= ::
    
    Node 2 :
    server.1= ::
    server.2= 0.0.0.0::
    .
    .
    .
    server.n= ::
    
    
    Now in location defined by datadir on your zoo.cfg
    Node 1:
    echo 1 > /id
    
    Node 2:
    echo 2 > /id
    
    .
    .
    .
    
    
    Node n:
    echo n > /id
    

    This one helped me to start zoo keeper successfully but will know more once i start playing with it. Hope this helps.

提交回复
热议问题