I have to Amazon Web Services instances. I have set up SolrCloud for them.
Solr .wars are deployed into tomcat. When I start solr that runs zookeper,
it is OK. It can not find second shard as usual. When I start up second
solr it throws error.

This is first solr config:

JAVA_OPTS="$JAVA_OPTS
-Dbootstrap_confdir=/usr/share/solr_home/collection1/conf
-Dcollection.configName=custom_conf -DnumShards=2 -DzkRun"

This is for second one:

JAVA_OPTS="$JAVA_OPTS -DzkHost=**.**.***.**:9080" // Ihave masked ip

This is the error that I get at catalina.out:

Mar 26, 2013 10:42:14 PM org.apache.zookeeper.ClientCnxn$SendThread
logStartConnect
INFO: Opening socket connection to server
ip-**-**-***-**.eu-west-1.compute.internal/**.**.***.**:9080. Will not
attempt to authenticate using SASL (unknown error)
Mar 26, 2013 10:42:14 PM org.apache.zookeeper.ClientCnxn$SendThread
run

WARNING: Session 0x0 for server null, unexpected error, closing socket
connection and attempting
reconnect
java.net.ConnectException: Connection
refused

        at sun.nio.ch.SocketChannelImpl.checkConnect(Native
Method)

        at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)

        at
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)

        at
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)

And the things that I am confused:
1) I didn't define a -DzkHost for first one.
2) First solr runs on 8080 and I have added +1000 and set 9080 for second
one's -DzkHost. I should learn that do I need to define that 8080 at first
one at anywhere else.


Any ideas?

Reply via email to