lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yury Kats <yuryk...@yahoo.com>
Subject Re: solr4.0 problem zkHost with multiple hosts throws out of range exception
Date Thu, 18 Oct 2012 11:03:41 GMT
I'm pretty sure this problem has been there forever -- the parsing of zkHost is busted. I believe
it's only been intended for example/demo purposes and therefore makes some assumptions about
the value.
I haven't looked at the current code, but this is my recollection from about a year ago.




>________________________________
> From: Pascal <freqresplot@pensa.fr>
>To: solr-user@lucene.apache.org 
>Sent: Thursday, October 18, 2012 5:45 AM
>Subject: solr4.0 problem zkHost with multiple hosts throws out of range exception
> 
>Hi there,
>
>I've set up a test solr 4.0 cloud with some nodes, everything worked fine
>until i tried to put more than 1 zookeeper instance.
>
>If i put only one server it's ok eg: java -DzkHost=10.0.0.1:9983 -DzkRun
>-jar start.jar
>
>But if i put more than 1 server in zkHost param an Exception is thrown
>immediately when parsing the zkHost parameter:
>
>Exemple : java -DzkHost=10.0.0.1:9983,10.0.0.2:9983 -DzkRun -jar start.jar
>
>[...]
>SEVERE: null:java.lang.IllegalArgumentException: port out of range:-1
>        at java.net.InetSocketAddress.<init>(InetSocketAddress.java:83)
>        at java.net.InetSocketAddress.<init>(InetSocketAddress.java:63)
>        at
>org.apache.solr.cloud.SolrZkServerProps.setClientPort(SolrZkServer.java:315)
>        at
>org.apache.solr.cloud.SolrZkServerProps.getMySeverId(SolrZkServer.java:278)
>        at
>org.apache.solr.cloud.SolrZkServerProps.parseProperties(SolrZkServer.java:453)
>        at
>org.apache.solr.cloud.SolrZkServer.parseConfig(SolrZkServer.java:90)
>        at
>org.apache.solr.core.CoreContainer.initZooKeeper(CoreContainer.java:208)
>[...]
>
>The  "port out of range:-1" look like if zkHost parameter wasn't correctly
>split as soon as i add a coma in the parameter.
>
>I tried to put hostnames instead of ip with no luck.
>
>I tried to search in this forum and on the net but didn't find why, any idea
>? 
>
>Thanks,
>Pascal
>
>
>
>--
>View this message in context: http://lucene.472066.n3.nabble.com/solr4-0-problem-zkHost-with-multiple-hosts-throws-out-of-range-exception-tp4014440.html
>Sent from the Solr - User mailing list archive at Nabble.com.
>
>
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message