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 deniz <de...@gmail.com> on 2012/11/13 06:22:30 UTC
Re: solr4.0 problem zkHost with multiple hosts throws out of range
exception
so do we need to add one of the servers from the -DzkHost string to -DzkRun?
should it look like
-DzkRun=host1:port -DzkHost=host:port, host1:port, host2:port in the
start up command?
and will wiki page be updated? because the example there is still letting
into the error that was mentioned here nearly a month ago...
-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: http://lucene.472066.n3.nabble.com/solr4-0-problem-zkHost-with-multiple-hosts-throws-out-of-range-exception-tp4014440p4019941.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr4.0 problem zkHost with multiple hosts throws out of range exception
Posted by Mark Miller <ma...@gmail.com>.
On Tue, Nov 13, 2012 at 12:22 AM, deniz <de...@gmail.com> wrote:
> so do we need to add one of the servers from the -DzkHost string to -DzkRun?
> should it look like
>
> -DzkRun=host1:port -DzkHost=host:port, host1:port, host2:port in the
> start up command?
Yeah, something to that affect.
>
>
> and will wiki page be updated? because the example there is still letting
> into the error that was mentioned here nearly a month ago...
>
Yeah, it would be nice if the wiki pointed this out. It shouldn't be
necessarily required for the example because it should work with
localhost with just zkRun - but that does set you up for failure when
you move to multiple machines - so the wiki should point it out.
--
- Mark
Re: solr4.0 problem zkHost with multiple hosts throws out of range
exception
Posted by Upayavira <uv...@odoko.co.uk>.
This config isn't intended for embedded zookeeper, it is for a separate
zookeeper ensemble that is shared with other services.
Upayavira
On Tue, Feb 12, 2013, at 10:19 PM, mbennett wrote:
> The suggested syntax didn't work with embedded ZooKeeper:
>
> Syntax:
> -DzkRun -DzkHost=nodeA:9983,nodeB:9983,nodeC:9983,nodeD:9983/solrroot
> -DnumShards=2 -Dbootstrap_confdir=./solr/collection1/conf
> -Dcollection.configName=MyConfig
>
> Error:
> SEVERE: Could not start Solr. Check solr/home property and the logs
> Feb 12, 2013 1:36:49 PM org.apache.solr.common.SolrException log
> SEVERE: null:java.lang.NumberFormatException: For input string:
> "9983/solrroot"
> at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>
> More details at:
> https://issues.apache.org/jira/browse/SOLR-4450
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/solr4-0-problem-zkHost-with-multiple-hosts-throws-out-of-range-exception-tp4014440p4040087.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr4.0 problem zkHost with multiple hosts throws out of range
exception
Posted by mbennett <mb...@ideaeng.com>.
The suggested syntax didn't work with embedded ZooKeeper:
Syntax:
-DzkRun -DzkHost=nodeA:9983,nodeB:9983,nodeC:9983,nodeD:9983/solrroot
-DnumShards=2 -Dbootstrap_confdir=./solr/collection1/conf
-Dcollection.configName=MyConfig
Error:
SEVERE: Could not start Solr. Check solr/home property and the logs
Feb 12, 2013 1:36:49 PM org.apache.solr.common.SolrException log
SEVERE: null:java.lang.NumberFormatException: For input string:
"9983/solrroot"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
More details at:
https://issues.apache.org/jira/browse/SOLR-4450
--
View this message in context: http://lucene.472066.n3.nabble.com/solr4-0-problem-zkHost-with-multiple-hosts-throws-out-of-range-exception-tp4014440p4040087.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr4.0 problem zkHost with multiple hosts throws out of range exception
Posted by Mark Miller <ma...@gmail.com>.
Cool, we should add this to the wiki.
-Mark
On Thursday, January 3, 2013, cmuarg wrote:
> the solution: –DzkHost=zoo1:8983,zoo2:8983,zoo3:8983/solrroot
>
> thanks
> /C
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/solr4-0-problem-zkHost-with-multiple-hosts-throws-out-of-range-exception-tp4014440p4030394.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
--
- Mark
Re: solr4.0 problem zkHost with multiple hosts throws out of range
exception
Posted by cmuarg <cm...@gmail.com>.
the solution: –DzkHost=zoo1:8983,zoo2:8983,zoo3:8983/solrroot
thanks
/C
--
View this message in context: http://lucene.472066.n3.nabble.com/solr4-0-problem-zkHost-with-multiple-hosts-throws-out-of-range-exception-tp4014440p4030394.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr4.0 problem zkHost with multiple hosts throws out of range exception
Posted by Tomás Fernández Löbbe <to...@gmail.com>.
I think it should be
–DzkHost=zoo1:8983,zoo2:8983,zoo3:8983/solrroot
Tomás
On Thu, Jan 3, 2013 at 2:14 PM, Mark Miller <ma...@gmail.com> wrote:
> I don't really understand your question. More than one what?
>
> More than one external zk node? Start up an ensemble, and pass a comma sep
> list of the addresses as the zkhost - each one should have the same chroot
> on it.
>
> - Mark
>
> On Jan 3, 2013, at 4:32 AM, cmuarg <cm...@gmail.com> wrote:
>
> > Hello
> >
> > I have a zookeeper ensemble that is also used for other purposes and I
> don’t
> > want the zookeeper root get messed up with solrcloud things so I try to
> use
> > ‘chroot’.
> >
> > One external zookeeper node works fine with –DzkHost=zoo1:8983/solrroot
> > (solrroot must exist) but how specify more than one?
> >
> > Thanks
> > /C
> >
> >
> >
> > --
> > View this message in context:
> http://lucene.472066.n3.nabble.com/solr4-0-problem-zkHost-with-multiple-hosts-throws-out-of-range-exception-tp4014440p4030230.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
>
>
Re: solr4.0 problem zkHost with multiple hosts throws out of range exception
Posted by Mark Miller <ma...@gmail.com>.
I don't really understand your question. More than one what?
More than one external zk node? Start up an ensemble, and pass a comma sep list of the addresses as the zkhost - each one should have the same chroot on it.
- Mark
On Jan 3, 2013, at 4:32 AM, cmuarg <cm...@gmail.com> wrote:
> Hello
>
> I have a zookeeper ensemble that is also used for other purposes and I don’t
> want the zookeeper root get messed up with solrcloud things so I try to use
> ‘chroot’.
>
> One external zookeeper node works fine with –DzkHost=zoo1:8983/solrroot
> (solrroot must exist) but how specify more than one?
>
> Thanks
> /C
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/solr4-0-problem-zkHost-with-multiple-hosts-throws-out-of-range-exception-tp4014440p4030230.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr4.0 problem zkHost with multiple hosts throws out of range
exception
Posted by cmuarg <cm...@gmail.com>.
Hello
I have a zookeeper ensemble that is also used for other purposes and I don’t
want the zookeeper root get messed up with solrcloud things so I try to use
‘chroot’.
One external zookeeper node works fine with –DzkHost=zoo1:8983/solrroot
(solrroot must exist) but how specify more than one?
Thanks
/C
--
View this message in context: http://lucene.472066.n3.nabble.com/solr4-0-problem-zkHost-with-multiple-hosts-throws-out-of-range-exception-tp4014440p4030230.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr4.0 problem zkHost with multiple hosts throws out of range exception
Posted by Mark Miller <ma...@gmail.com>.
On Tue, Nov 13, 2012 at 12:22 AM, deniz <de...@gmail.com> wrote:
> so do we need to add one of the servers from the -DzkHost string to -DzkRun?
By the way - not just any of the servers has to be added to zkRun -
but the address for the current server - that is, the server you are
running the command on. This is so we know which of the zk address
belongs to the localhost. It lets us handle some zookeeper setup for
you (specifying a myid for each node).