Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Can I ask you to help me with SolrCloud?

I try to setup a SolrCloud with 2 shards (and 1 replica for each shard) with 4 Zookeepers, but it fails:(

My settings:

1) shard1 + Zookeper without -Djetty.port it will use standard port 8983 solr/zoo.cfg changed to use port 8011: clientPort=8011 (shard 1, replica 1) the file myid in the default Zookeeper data folder contains: 11 (shard 1, replica 1)

$ screen -S shard1 java -server -Dbootstrap_confdir=./solr/conf -Dcollection.configName=myconf -DzkRun -DzkHost=localhost:8011,localhost:8012,localhost:8021,localhost:8022 -jar start.jar

2) shard1-replica + Zookeper solr/zoo.cfg should changed to use port 8012: clientPort=8012 (shard 1, replica 2) the file myid in the default Zookeeper data folder contains: 12 (shard 1, replica 2)

$ screen -S shard1_replica java -server -Djetty.port=8984 -DhostPort=8984 -DzkRun -DzkHost=localhost:8011,localhost:8012,localhost:8021,localhost:8022 -jar start.jar

3) shard2 + Zookeper solr/zoo.cfg should changed to use port 8021: clientPort=8021 (shard 2, replica 1) the file myid in the default Zookeeper data folder contains: 21 (shard 2, replica 1)

$ screen -S shard2 java -server -Djetty.port=8985 -DhostPort=8985 -DzkRun -DzkHost=localhost:8011,localhost:8012,localhost:8021,localhost:8022 -jar start.jar

4) shard2-replica + Zookeper: solr/zoo.cfg should changed to use port 8022: clientPort=8022 (shard 2, replica 2) the file myid in the default Zookeeper data folder contains: 22 (shard 2, replica 2)

$ screen -S shard2_replica java -server -Djetty.port=8986 -DhostPort=8986 -DzkRun -DzkHost=localhost:8011,localhost:8012,localhost:8021,localhost:8022 -jar start.jar

However, it's not working with the same messages:

... Jul 6, 2011 4:23:11 PM org.apache.zookeeper.ClientCnxn$SendThread startConnect INFO: Opening socket connection to server localhost/127.0.0.1:8022 Jul 6, 2011 4:23:11 PM org.apache.zookeeper.ClientCnxn$SendThread primeConnection INFO: Socket connection established to localhost/127.0.0.1:8022, initiating session Jul 6, 2011 4:23:11 PM org.apache.zookeeper.ClientCnxn$SendThread run INFO: Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect Jul 6, 2011 4:23:11 PM org.apache.zookeeper.server.NIOServerCnxn$Factory run INFO: Accepted socket connection from /127.0.0.1:44432 Jul 6, 2011 4:23:11 PM org.apache.zookeeper.server.NIOServerCnxn doIO WARNING: Exception causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not running Jul 6, 2011 4:23:11 PM org.apache.zookeeper.server.NIOServerCnxn closeSock INFO: Closed socket connection for client /127.0.0.1:44432 (no session established for client) ...

And http://localhost:8983/solr/admin/zookeeper.jsp is not available:(

I will be glad if you can help...

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.