[ 
https://issues.apache.org/jira/browse/SOLR-4936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15510226#comment-15510226
 ] 

Cao Manh Dat commented on SOLR-4936:
------------------------------------

In lastest version of Solr, It cannot reproduce, 

Solr seem have to connect to all zkHosts first so when we start with
{code}
java -server -Xms512m -Xmx512m -DzkClientTimeout=15000 -DzkRun=localhost:9280 
-DzkHost=localhost:9180,localhost:9280 -Djetty.port=8280 -Duser.timezone=UTC 
-Djetty.home=/Users/caomanhdat/bin/solr-6.2.1/server 
-Dsolr.solr.home=/Users/caomanhdat/bin/solr-6.2.1/example/cloud/node1/solr 
-Dsolr.install.dir=/Users/caomanhdat/bin/solr-6.2.1 -Xss256k -jar start.jar 
--module=http

java -server -Xms512m -Xmx512m -DzkClientTimeout=15000 -DzkRun=localhost:9180 
-DzkHost=localhost:9180,localhost:9280 -Djetty.port=8180 -Duser.timezone=UTC 
-Djetty.home=/Users/caomanhdat/bin/solr-6.2.1/server 
-Dsolr.solr.home=/Users/caomanhdat/bin/solr-6.2.1/example/cloud/node2/solr 
-Dsolr.install.dir=/Users/caomanhdat/bin/solr-6.2.1 -Xss256k -jar start.jar 
--module=http
{code}
We will get {{java.net.ConnectException: Connection refused}}. 

In case we start single zk by ip like this
{code}

java -server -Xms512m -Xmx512m -DzkClientTimeout=15000 -DzkRun=192.168.1.7:9280 
-Djetty.port=8280 -Duser.timezone=UTC 
-Djetty.home=/Users/caomanhdat/bin/solr-6.2.1/server 
-Dsolr.solr.home=/Users/caomanhdat/bin/solr-6.2.1/example/cloud/node1/solr 
-Dsolr.install.dir=/Users/caomanhdat/bin/solr-6.2.1 -Xss256k -jar start.jar 
--module=http

java -server -Xms512m -Xmx512m -DzkClientTimeout=15000 
-DzkHost=192.168.1.7:9280 -Djetty.port=8180 -Duser.timezone=UTC 
-Djetty.home=/Users/caomanhdat/bin/solr-6.2.1/server 
-Dsolr.solr.home=/Users/caomanhdat/bin/solr-6.2.1/example/cloud/node2/solr 
-Dsolr.install.dir=/Users/caomanhdat/bin/solr-6.2.1 -Xss256k -jar start.jar 
--module=http
{code}
Everything work fine now.

> Cannot run Solr with zookeeper on multiple IPs
> ----------------------------------------------
>
>                 Key: SOLR-4936
>                 URL: https://issues.apache.org/jira/browse/SOLR-4936
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.2
>            Reporter: Grzegorz Sobczyk
>
> This doesn't run solr with ZK:
> {{java -DzkRun=192.168.1.169:9180 
> -DzkHost=192.168.1.169:9180,192.168.1.169:9280 -Djetty.port=8180 -jar 
> start.jar}}
> {{java -DzkRun=192.168.1.169:9280 
> -DzkHost=192.168.1.169:9180,192.168.1.169:9280 -Djetty.port=8280 -jar 
> start.jar}}
> And this does: 
> {{java -DzkRun=localhost:9180 -DzkHost=localhost:9180,localhost:9280 
> -Djetty.port=8180 -jar start.jar}}
> {{java -DzkRun=localhost:9280 -DzkHost=localhost:9180,localhost:9280 
> -Djetty.port=8280 -jar start.jar}}
> SolrZkServerProps#getMyServerId() assumes that myHost is "localhost" rather 
> than reads it from zkRun property.
> (tested on example)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to