You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Stephan Schubert <St...@sick.de> on 2015/04/27 18:49:34 UTC

Start Solr with multiple external zookeepers on Windows Server?

Hi everyone,

how is it possible to start solr with an external set of zookeeper 
instances (quorum of 3 servers) on a windows server (2008R2)?

>From the wiki I got (
https://cwiki.apache.org/confluence/display/solr/Setting+Up+an+External+ZooKeeper+Ensemble
)

bin\solr restart -c -p 8983 -z 
samplehost1:9983,samplehost2:9983,samplehost3:9983 -m 6g

But this seems not to work on windows. After I start this command, the 
start skript prints out the help option only. With only one zookeeper 
Instance it works. Any suggestions?

Regards

Stephan
------------------------------------
Solr Version: 5.1 
 
SICK AG - Sitz: Waldkirch i. Br. - Handelsregister: Freiburg i. Br. HRB 
280355 
Vorstand: Dr. Robert Bauer (Vorsitzender)  -  Reinhard Bösl  -  Dr. Mats 
Gökstorp  -  Dr. Martin Krämer  -  Markus Vatter 
Aufsichtsrat: Gisela Sick (Ehrenvorsitzende) - Klaus M. Bukenberger 
(Vorsitzender) 

Antwort: Start Solr with multiple external zookeepers on Windows Server?

Posted by Stephan Schubert <St...@sick.de>.
Hi there,

editing the solr.in.cmd and list the zookeeper hosts there instead of 
passing them via parameter in the console worked. I'm using Solr 5.1 btw.





Von:    Stephan Schubert <St...@sick.de>
An:     solr-user@lucene.apache.org, 
Datum:  27.04.2015 19:06
Betreff:        Start Solr with multiple external zookeepers on Windows 
Server?



Hi everyone,

how is it possible to start solr with an external set of zookeeper 
instances (quorum of 3 servers) on a windows server (2008R2)?

>From the wiki I got (
https://cwiki.apache.org/confluence/display/solr/Setting+Up+an+External+ZooKeeper+Ensemble

)

bin\solr restart -c -p 8983 -z 
samplehost1:9983,samplehost2:9983,samplehost3:9983 -m 6g

But this seems not to work on windows. After I start this command, the 
start skript prints out the help option only. With only one zookeeper 
Instance it works. Any suggestions?

Regards

Stephan
------------------------------------
Solr Version: 5.1 
 
SICK AG - Sitz: Waldkirch i. Br. - Handelsregister: Freiburg i. Br. HRB 
280355 
Vorstand: Dr. Robert Bauer (Vorsitzender)  -  Reinhard Bösl  -  Dr. Mats 
Gökstorp  -  Dr. Martin Krämer  -  Markus Vatter 
Aufsichtsrat: Gisela Sick (Ehrenvorsitzende) - Klaus M. Bukenberger 
(Vorsitzender) 

 
 
SICK AG - Sitz: Waldkirch i. Br. - Handelsregister: Freiburg i. Br. HRB 
280355 
Vorstand: Dr. Robert Bauer (Vorsitzender)  -  Reinhard Bösl  -  Dr. Mats 
Gökstorp  -  Dr. Martin Krämer  -  Markus Vatter 
Aufsichtsrat: Gisela Sick (Ehrenvorsitzende) - Klaus M. Bukenberger 
(Vorsitzender) 

Re: Start Solr with multiple external zookeepers on Windows Server?

Posted by Zheng Lin Edwin Yeo <ed...@gmail.com>.
For my version in Solr-5.0.0, I use this command to start:

java -DzkHost=localhost:2181,localhost:2182,localhost:2183 -jar start.jar

For my setup, the 3 zookeeper servers are running on the same machine, but
you can replace the 'localhost' to your server IP addresses, and also
replace the ports accordingly.

Regards,
Edwin


On 28 April 2015 at 02:13, Timothy Potter <th...@gmail.com> wrote:

> Can you try defining the ZK_HOST in bin\solr.in.cmd instead of passing
> it on the command-line?
>
> On Mon, Apr 27, 2015 at 12:10 PM, Erick Erickson
> <er...@gmail.com> wrote:
> > What version of Solr are you using? 4.10.3? 5.1?
> >
> > And can we see the full output of your attempt to start Solr? There
> > might be some more informative bits above the help response.
> >
> > Best,
> > Erick
> >
> > On Mon, Apr 27, 2015 at 9:49 AM, Stephan Schubert
> > <St...@sick.de> wrote:
> >> Hi everyone,
> >>
> >> how is it possible to start solr with an external set of zookeeper
> >> instances (quorum of 3 servers) on a windows server (2008R2)?
> >>
> >> From the wiki I got (
> >>
> https://cwiki.apache.org/confluence/display/solr/Setting+Up+an+External+ZooKeeper+Ensemble
> >> )
> >>
> >> bin\solr restart -c -p 8983 -z
> >> samplehost1:9983,samplehost2:9983,samplehost3:9983 -m 6g
> >>
> >> But this seems not to work on windows. After I start this command, the
> >> start skript prints out the help option only. With only one zookeeper
> >> Instance it works. Any suggestions?
> >>
> >> Regards
> >>
> >> Stephan
> >> ------------------------------------
> >> Solr Version: 5.1
> >>
> >> SICK AG - Sitz: Waldkirch i. Br. - Handelsregister: Freiburg i. Br. HRB
> >> 280355
> >> Vorstand: Dr. Robert Bauer (Vorsitzender)  -  Reinhard Bösl  -  Dr. Mats
> >> Gökstorp  -  Dr. Martin Krämer  -  Markus Vatter
> >> Aufsichtsrat: Gisela Sick (Ehrenvorsitzende) - Klaus M. Bukenberger
> >> (Vorsitzender)
>

Re: Start Solr with multiple external zookeepers on Windows Server?

Posted by Timothy Potter <th...@gmail.com>.
Can you try defining the ZK_HOST in bin\solr.in.cmd instead of passing
it on the command-line?

On Mon, Apr 27, 2015 at 12:10 PM, Erick Erickson
<er...@gmail.com> wrote:
> What version of Solr are you using? 4.10.3? 5.1?
>
> And can we see the full output of your attempt to start Solr? There
> might be some more informative bits above the help response.
>
> Best,
> Erick
>
> On Mon, Apr 27, 2015 at 9:49 AM, Stephan Schubert
> <St...@sick.de> wrote:
>> Hi everyone,
>>
>> how is it possible to start solr with an external set of zookeeper
>> instances (quorum of 3 servers) on a windows server (2008R2)?
>>
>> From the wiki I got (
>> https://cwiki.apache.org/confluence/display/solr/Setting+Up+an+External+ZooKeeper+Ensemble
>> )
>>
>> bin\solr restart -c -p 8983 -z
>> samplehost1:9983,samplehost2:9983,samplehost3:9983 -m 6g
>>
>> But this seems not to work on windows. After I start this command, the
>> start skript prints out the help option only. With only one zookeeper
>> Instance it works. Any suggestions?
>>
>> Regards
>>
>> Stephan
>> ------------------------------------
>> Solr Version: 5.1
>>
>> SICK AG - Sitz: Waldkirch i. Br. - Handelsregister: Freiburg i. Br. HRB
>> 280355
>> Vorstand: Dr. Robert Bauer (Vorsitzender)  -  Reinhard Bösl  -  Dr. Mats
>> Gökstorp  -  Dr. Martin Krämer  -  Markus Vatter
>> Aufsichtsrat: Gisela Sick (Ehrenvorsitzende) - Klaus M. Bukenberger
>> (Vorsitzender)

Re: Start Solr with multiple external zookeepers on Windows Server?

Posted by Erick Erickson <er...@gmail.com>.
What version of Solr are you using? 4.10.3? 5.1?

And can we see the full output of your attempt to start Solr? There
might be some more informative bits above the help response.

Best,
Erick

On Mon, Apr 27, 2015 at 9:49 AM, Stephan Schubert
<St...@sick.de> wrote:
> Hi everyone,
>
> how is it possible to start solr with an external set of zookeeper
> instances (quorum of 3 servers) on a windows server (2008R2)?
>
> From the wiki I got (
> https://cwiki.apache.org/confluence/display/solr/Setting+Up+an+External+ZooKeeper+Ensemble
> )
>
> bin\solr restart -c -p 8983 -z
> samplehost1:9983,samplehost2:9983,samplehost3:9983 -m 6g
>
> But this seems not to work on windows. After I start this command, the
> start skript prints out the help option only. With only one zookeeper
> Instance it works. Any suggestions?
>
> Regards
>
> Stephan
> ------------------------------------
> Solr Version: 5.1
>
> SICK AG - Sitz: Waldkirch i. Br. - Handelsregister: Freiburg i. Br. HRB
> 280355
> Vorstand: Dr. Robert Bauer (Vorsitzender)  -  Reinhard Bösl  -  Dr. Mats
> Gökstorp  -  Dr. Martin Krämer  -  Markus Vatter
> Aufsichtsrat: Gisela Sick (Ehrenvorsitzende) - Klaus M. Bukenberger
> (Vorsitzender)