Thanks Swaraj. It is working now, after I run without start, and changing the zookeeper port to 2888 instead.
Regards, Edwin On 7 April 2015 at 14:59, Swaraj Kumar <swaraj2...@gmail.com> wrote: > As per http://stackoverflow.com/questions/11765015/zookeeper-not-starting > <http://stackoverflow.com/questions/11765015/zookeeper-not-starting> > Running without start will fix this. > > One more change you need to do is Solr default runs on 8983 and you have > used 8983 in zookeeper so start solr on different port. > > Regards, > > > Swaraj Kumar > Senior Software Engineer I > MakeMyTrip.com > Mob No- 9811774497 > > On Tue, Apr 7, 2015 at 9:42 AM, Zheng Lin Edwin Yeo <edwinye...@gmail.com> > wrote: > > > 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 > > > > > >