SolrCloud: port out of range:-1

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

SolrCloud: port out of range:-1

roySolr
This post was updated on .
Hello,

I have some problems with Solrcloud and Zookeeper. I have 2 servers and i want to have a solr instance on both servers. Both solr instances runs an embedded zookeeper.

When i try to start the first one i get the error:  "port out of range:-1".

The command i run to start solr with embedded zookeeper:

java -Djetty.port=4110 -DzkRun=10.100.10.101:5110 -DzkHost=10.100.10.101:5110,10.100.10.102:5120 -Dbootstrap_conf=true -DnumShards=1 -Xmx1024M -Xms512M -jar start.jar

It runs Solr on port 4110, the embedded zk on 5110.

The -DzkHost gives the urls of the localhost zk(5110) and the url of the other server(zk port). The problem is the -DzkHost part, without the other server solr will start. Does it have to be separated by ","?

Need some help,

Thanks
Roy



Reply | Threaded
Open this post in threaded view
|

Re: SolrCloud: port out of range:-1

Shawn Heisey-4
On 3/8/2013 7:37 AM, roySolr wrote:
> java -Djetty.port=4110 -DzkRun=10.100.10.101:5110
> -DzkHost=10.100.10.101:5110,10.100.10.102:5120 -Dbootstrap_conf=true
> -DnumShards=1 -Xmx1024M -Xms512M -jar start.jar
>
> It runs Solr on port 4110, the embedded zk on 5110.
>
> The -DzkHost gives the urls of the localhost zk(5110) and the url of the
> other server(zk port). When i try to start this it give the error: "port out
> of range:-1".

The full log line, ideally with several lines above and below for
context, is going to be crucial for figuring this out.  Also, the
contents of your solr.xml file may be important.

Thanks,
Shawn

Reply | Threaded
Open this post in threaded view
|

Re: SolrCloud: port out of range:-1

Tomás Fernández Löbbe
A couple of comments about your deployment architecture too. You'll need to
change the zoo.cfg to make the Zookeeper ensemble work with two instances
as you are trying to do, have you? The example configuration with the
zoo.cfg is intended for a single ZK instance as described in the SolrCloud
example. That said, really a two instances ZK ensemble as the one you are
intending to have doesn't make much sense, if ANY of your Solr servers
break (which as you are running embedded, ZK will also stop), the whole
cluster will be useless until you start the server again.

Tomás


On Fri, Mar 8, 2013 at 12:26 PM, Shawn Heisey <[hidden email]> wrote:

> On 3/8/2013 7:37 AM, roySolr wrote:
>
>> java -Djetty.port=4110 -DzkRun=10.100.10.101:5110
>> -DzkHost=10.100.10.101:5110,10**.100.10.102:5120<http://10.100.10.102:5120>-Dbootstrap_conf=true
>> -DnumShards=1 -Xmx1024M -Xms512M -jar start.jar
>>
>> It runs Solr on port 4110, the embedded zk on 5110.
>>
>> The -DzkHost gives the urls of the localhost zk(5110) and the url of the
>> other server(zk port). When i try to start this it give the error: "port
>> out
>> of range:-1".
>>
>
> The full log line, ideally with several lines above and below for context,
> is going to be crucial for figuring this out.  Also, the contents of your
> solr.xml file may be important.
>
> Thanks,
> Shawn
>
>
Reply | Threaded
Open this post in threaded view
|

Re: SolrCloud: port out of range:-1

Walter Underwood
A two server Zookeeper ensemble is actually less reliable than a one server ensemble.

With two servers, Zookeeper stops working if either of them fail, so there is a higher probability that it will go down.

The minimum number for increased reliability is three servers.

wunder

On Mar 8, 2013, at 12:33 PM, Tomás Fernández Löbbe wrote:

> A couple of comments about your deployment architecture too. You'll need to
> change the zoo.cfg to make the Zookeeper ensemble work with two instances
> as you are trying to do, have you? The example configuration with the
> zoo.cfg is intended for a single ZK instance as described in the SolrCloud
> example. That said, really a two instances ZK ensemble as the one you are
> intending to have doesn't make much sense, if ANY of your Solr servers
> break (which as you are running embedded, ZK will also stop), the whole
> cluster will be useless until you start the server again.
>
> Tomás
>
>
> On Fri, Mar 8, 2013 at 12:26 PM, Shawn Heisey <[hidden email]> wrote:
>
>> On 3/8/2013 7:37 AM, roySolr wrote:
>>
>>> java -Djetty.port=4110 -DzkRun=10.100.10.101:5110
>>> -DzkHost=10.100.10.101:5110,10**.100.10.102:5120<http://10.100.10.102:5120>-Dbootstrap_conf=true
>>> -DnumShards=1 -Xmx1024M -Xms512M -jar start.jar
>>>
>>> It runs Solr on port 4110, the embedded zk on 5110.
>>>
>>> The -DzkHost gives the urls of the localhost zk(5110) and the url of the
>>> other server(zk port). When i try to start this it give the error: "port
>>> out
>>> of range:-1".
>>>
>>
>> The full log line, ideally with several lines above and below for context,
>> is going to be crucial for figuring this out.  Also, the contents of your
>> solr.xml file may be important.
>>
>> Thanks,
>> Shawn
>>
>>

--
Walter Underwood
[hidden email]



Reply | Threaded
Open this post in threaded view
|

Re: SolrCloud: port out of range:-1

roySolr
This post was updated on .
On the end i want 3 servers, this was only a test. I now that a majority of servers is needed to provide service.

I read some tutorials about zookeeper and looked at the wiki. I installed zookeeper seperate on the server and connect them with eachother(zoo.cfg). In the log i see the zookeeper know eachother. When i start SOLR, i used the -Dzkhost parameter to declare the zookeepers of the servers and leaves the -Dzkrun away:

-Dzkhost=ip:2181,ip:2181,ip:2181

It works great:)

ps. With embedded zookeepers i can't get it working. With a second server in the zkhost it returns a error. Strange, but for me the seperate zookeepers is a great solution, seperate logs and easy to use on other zookeeper servers(in the future i want to seperate in 3 solr instances and 5 zookeeper instances).

THANKS