Believe me, I'm no Zookeeper expert, but it looks to me like you're mixing Solr ports and Zookeeper ports. AFAIK, the two ports in the zoo.cfg file are exclusively for the Zookeeper instances to talk to each other. Zookeeper isn't aware that the listening nodes are Solr noodes, so putting Solr ports in there is confusing Zookeeper I'd guess.
Assuming you're starting your three ZK instances on ports 2888, 2889 and 2890, I'd expect the proper ports are 2888:3888 2889:3889 2890:3890 But as I said I'm not a Zookeeper expert so beware.. Best, Erick On Mon, Apr 6, 2015 at 7:57 PM, Zheng Lin Edwin Yeo <edwinye...@gmail.com> wrote: > Hi, > > I'm using Solr 5.0.0 and ZooKeeper 3.4.6. I'm trying to set up a ZooKeeper > with simulation of 3 servers, but they are all located on the same machine > for testing purpose. > > In my zoo.cfg file, I have listed down the 3 servers to be as follows: > server.1=localhost:8983:3888 > server.2=localhost:8984:3889 > server.3=localhost:8985:3890 > > Then I try to start Solr using the following command: > bin/solr start -e cloud -z localhost:8983-noprompt > > However, I'm unable to establish a connection from my Solr to the > ZooKeeper. Is this configuration possible, or is there anything which I > missed out? > > Thank you in advance for your help. > > Regards, > Edwin