Hi Erick, I think I'll just setup the ZooKeeper server in standalone mode first, before I get more confused as I'm quite new to both Solr and ZooKeeper too. Better not to jump the gun.
However, I face this error when I try to start it in standalone mode. 2015-04-07 11:59:51,789 [myid:] - ERROR [main:ZooKeeperServerMain@54] - Invalid arguments, exiting abnormally java.lang.NumberFormatException: For input string: "C:\Users\edwin\zookeeper-3.4.6\bin\..\conf\zoo.cfg" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at org.apache.zookeeper.server.ServerConfig.parse(ServerConfig.java:60) at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:83) at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:52) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78) 2015-04-07 11:59:51,796 [myid:] - INFO [main:ZooKeeperServerMain@55] - Usage: ZooKeeperServerMain configfile | port datadir [ticktime] [maxcnxns] I have the following information in my zoo.cfg: tickTime=2000 initLimit=10 syncLimit=5 dataDir=C:\\Users\\edwin\\zookeeper-3.4.6\\singleserver clientPort=8983 I got the same error even if I set the clientPort=2888. Regards, Edwin On 7 April 2015 at 11:26, Erick Erickson <erickerick...@gmail.com> wrote: > 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 >