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=/
In mycase, the issue was, I had to start all the three zookeeper servers, Only then I was able to connect to zookeeper server using ./zkCli.sh
./zkCli.sh