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=/
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.