RE: Solr 5.2.1 setup zookeeper ensemble problem

2015-07-07 Thread Adrian Liew
Thanks David. That was helpful. I have managed to upload my configuration to 
ZooKeeper with the below.

Best 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  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
>
>
>


Re: Solr 5.2.1 setup zookeeper ensemble problem

2015-07-06 Thread Zheng Lin Edwin Yeo
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  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 
> 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 
> 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
> >>
> >>
> >>
>


Re: Solr 5.2.1 setup zookeeper ensemble problem

2015-07-06 Thread Timothy Potter
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  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  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
>>
>>
>>


Re: Solr 5.2.1 setup zookeeper ensemble problem

2015-07-06 Thread Shawn Heisey
On 7/6/2015 2:59 AM, Adrian Liew wrote:
> 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?

I haven't done this on Windows, or with the bin/solr script, but it
works fine on Linux with -DzkHost.  You could try putting quotes around
the three hosts and see if that helps.

Note that the setup you have indicated is only good for a proof of
concept.  For a true production-ready install, all three zookeeper nodes
must be on different physical machines, and should not use localhost.

Solr will only use the zookeeper host(s) that you indicate.  If you only
specify one host, and that host goes down, Solr will not be able to
communicate with zookeeper, and it will stop functioning.

Thanks,
Shawn



RE: Solr 5.2.1 setup zookeeper ensemble problem

2015-07-06 Thread Adrian Liew
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  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
>
>
>


Re: Solr 5.2.1 setup zookeeper ensemble problem

2015-07-06 Thread davidphilip cherian
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  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
>
>
>


Solr 5.2.1 setup zookeeper ensemble problem

2015-07-06 Thread Adrian Liew
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