Hi, 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 *zoo2.cfg* tickTime=2000 initLimit=10 syncLimit=5 dataDir=C:\\Users\\edwin\\zookeeper-3.4.6\\2 clientPort=2181 server.1=localhost:2888:3888 server.2=localhost:2889:3889 server.3=localhost:2890:3890 *zoo3.cfg* tickTime=2000 initLimit=10 syncLimit=5 dataDir=C:\\Users\\edwin\\zookeeper-3.4.6\\3 clientPort=2181 server.1=localhost:2888:3888 server.2=localhost:2889:3889 server.3=localhost:2890:3890 I have also created the myid file at the respective dataDir location for each of the 3 servers. - At C:\Users\edwin\zookeeper-3.4.6\1, the myid file contains just the number 1 - At C:\Users\edwin\zookeeper-3.4.6\2, the myid file contains just the number 2 - At C:\Users\edwin\zookeeper-3.4.6\3, the myid file contains just the number 3 However, I'm getting the following error when I run zkServer.cmd 2015-04-08 10:54:17,097 [myid:1] - DEBUG [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@412] - Queue size: 1 2015-04-08 10:54:17,097 [myid:1] - DEBUG [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@412] - Queue size: 1 2015-04-08 10:54:17,097 [myid:1] - DEBUG [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@364] - Opening channel to server 2 2015-04-08 10:54:18,097 [myid:1] - WARN [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 at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:368) at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:402) at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:840) at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:762) 2015-04-08 10:54:18,099 [myid:1] - DEBUG [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@364] - Opening channel to server 3 2015-04-08 10:54:19,099 [myid:1] - WARN [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@382] - Cannot open channel to 3 at election address localhost/127.0.0.1:3890 java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:368) at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:402) at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:840) at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:762) 2015-04-08 10:54:19,101 [myid:1] - INFO [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:FastLeaderElection@849] - Notification time out: 3200 Is there anything which I could have set wrongly? Regards, Edwin