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

Reply via email to