Hi Adrian, I tried with the double-quotes and it works. - bin\solr.cmd -p 8983 -s example\node1\solr -z "localhost:2181,localhost:2182,localhost:2183"
Regards, Edwin On 7 July 2015 at 00:12, Timothy Potter <thelabd...@gmail.com> wrote: > can you try with double-quotes around the zk connect string? > > bin\solr.cmd -e cloud -z "localhost:2181,localhost:2182,localhost:2183" > > On Mon, Jul 6, 2015 at 2:59 AM, Adrian Liew <adrian.l...@avanade.com> > wrote: > > Hi David, > > > > When I run the command below on a Windows machine using Powershell > window: > > > > .\solr.cmd -e cloud -z localhost:2181,localhost:2182,localhost:2183 > > > > I get the following error: > > > > Invalid command-line option: localhost:2182 > > > > Somehow it does not recognize comma separated between the localhost. As > far as I know if you are trying to run SolrCloud against your ZooKeeper > Ensemble, you will need to specifify all three ZK server addresses > (according to . > https://cwiki.apache.org/confluence/display/solr/Setting+Up+an+External+ZooKeeper+Ensemble) > However, some blogs say you can just connect to only just one instance for > a ZK Ensemble (http://solr.pl/en/2013/03/11/solrcloud-howto-2/). So I am > not sure which one is correct now. > > > > Thoughts on the above? > > > > Regards, > > Adrian > > > > -----Original Message----- > > From: davidphilip cherian [mailto:davidphilipcher...@gmail.com] > > Sent: Monday, July 6, 2015 4:35 PM > > To: solr-user@lucene.apache.org > > Subject: Re: Solr 5.2.1 setup zookeeper ensemble problem > > > > Hi Adrian, > > > > What is the error that you are getting? > > In order to upload configs files, you could use zkcli.sh script that > will be shipped with solr and use the upconfig command. > > > > ./server/scripts/cloud-scripts/zkcli.sh -zkhost 127.0.0.1:9983 \ > > -cmd upconfig -confname my_new_config -confdir > server/solr/configsets/basic_configs/conf > > > > https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities > > > > > > > > On Mon, Jul 6, 2015 at 1:43 PM, Adrian Liew <adrian.l...@avanade.com> > wrote: > > > >> There seems to be an issue running the following command using > >> solr.cmd as > >> below: > >> > >> - bin\solr.cmd -e cloud -z > >> localhost:2181,localhost:2182,localhost:2183 > >> > >> Anyone can please advise. > >> > >> Also, Is there a way to upload a configuration file (containing > >> schema.xml and solrconfig.xml) to ZooKeeper easily using solr.cmd in > solr 5.2.1? > >> > >> Best regards, > >> > >> Adrian Liew | Consultant Application Developer Avanade Malaysia Sdn. > >> Bhd..| Consulting Services > >> (: Direct: +(603) 2382 5668 > >> È: +6010-2288030 > >> > >> > >> >