Thank you nutchsolruser and Shawn. I've changed the clientPort to different port for each of the machine. It is able to work for my another setup, in which I have 3 different zookeeper folder, and each has its own configuration and all are using zoo.cfg. For that setup I can start the 3 servers individually using zkServer.cmd.
However, when I use zkServer.cmd in the setup which I posted earlier, only the first server managed to get started up, and I see the same error message for the other 2 servers. Although some documents says use the following commands, it doesn't help too, since I'm supposed to use the zkServer.cmd zkServer.cmd start zoo.cfg zkServer.cmd start zoo2.cfg zkServer.cmd start zoo3.cfg Regards, Edwin On 8 April 2015 at 13:46, Shawn Heisey <apa...@elyograg.org> wrote: > On 4/7/2015 9:16 PM, Zheng Lin Edwin Yeo wrote: > > I'm using SolrCloud 5.0.0 and ZooKeeper 3.4.6 running on Windows, and now > > I'm trying to deploy a multiple ZooKeeper ensemble (3 servers) on a > single > > machine. These are the settings which I have configured, according to the > > Solr Reference Guide. > > > > These files are under <ZOOKEEPER_HOME>\conf\ directory > > (C:\Users\edwin\zookeeper-3.4.6\conf) > > > > *zoo.cfg* > > tickTime=2000 > > initLimit=10 > > syncLimit=5 > > dataDir=C:\\Users\\edwin\\zookeeper-3.4.6\\1 > > clientPort=2181 > > server.1=localhost:2888:3888 > > server.2=localhost:2889:3889 > > server.3=localhost:2890:3890 > > <snip> > > > [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@382] - Cannot > > open channel to 2 at election address localhost/127.0.0.1:3889 > > java.net.ConnectException: Connection refused: connect > > The first thing I would suspect when running any network program on a > Windows machine that won't communicate is the Windows firewall, unless > you have either turned off the firewall or you have explicitly > configured an exception in the firewall for the relevant ports. > > Your other reply that you got from nutchsolruser does point out that all > three zookeeper configs are using 2181 as the clientPort. Because these > are all running on the same machine, you must use a different port for > each one. I'm not sure what happens to subsequent processes after the > first one starts, but they won't work even if they do manage to start. > > Thanks, > Shawn > >