You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ewa Kowalczuk <ew...@gmail.com> on 2014/07/10 18:26:54 UTC

No server hosting shard on local SolrCloud installation

Hi!

I'm trying to setup SolrCloud on single node
(the reason I'm using Cloud version is I want to use aliasing collections
feature).
I want to use external Zookeeper (located on the same node)
and Tomcat. I followed the instructions from:
    http://wiki.apache.org/solr/SolrCloudTomcat

However, I only used one node and I also didn't specify replicationFactor
or numShards when creating core
(I later also tried replicationFactor=0 and
replicationFactor=1&numShards=1):
    curl
http://localhost:8080/admin/cores?action=CREATE&name=core-2014-07-10

I'm able to send some documents to this core from my application and after
I issue commit:
    curl http://localhost:8080/solr/core-2014-07-10/update?commit=true -H
"" -d ""'
I'm able to see my indexed documents in SolrAdmin interface (using *:*
query).

However, when I try to query data from my application (Banana) I get an
error
that looks like this in log:

Jul 09, 2014 11:50:20 AM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: no servers hosting shard:
    at
org.apache.solr.handler.component.HttpShardHandler$1.call(HttpShardHandler.java:149)
    at
org.apache.solr.handler.component.HttpShardHandler$1.call(HttpShardHandler.java:119)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

I see in Cloud section of SorlAdmin that the shard is "Leader" and "Down".
When I start Tomcat see:

    INFO: Update state numShards=1 message={
      "operation":"state",
      "state":"down",
      "base_url":"http://192.168.56.101:8080/solr",
      "core":"core-2014-07-10",
      "roles":null,
      "node_name":"192.168.56.101:8080_solr",
      "shard":null,
      "collection":"core-2014-07-10",
      "numShards":"1",
      "core_node_name":"192.168.56.101:8080_solr_core-2014-07-10"}
    Jul 10, 2014 6:11:21 PM
org.apache.solr.cloud.Overseer$ClusterStateUpdater updateState
    INFO: shard=shard1 is already registered
    Jul 10, 2014 6:11:21 PM org.apache.solr.cloud.ZkController
createCollectionZkNode
    INFO: Collection zkNode exists
    Jul 10, 2014 6:11:21 PM org.apache.solr.common.cloud.ZkStateReader
readConfigName
    INFO: Load collection config from:/collections/core-2014-07-10

but there is no error about connecting to shard (only "already registered"
information.
I put the dump of cloud configuration here:
https://gist.github.com/EwaKowalczuk/8021a31ca6bf2727f6d3
I basically don't know how to put this shard1 "Up".
There should be no problem with network access, as 192.168.56.101 is my
host LAN address
it is pingable from inside of the host). I previously also checked with
127.0.0.1.

I will appreciate any remarks on this issue.

Thanks,
Ewa.