Hi,
   I'm using solr 4 (4.0.0.2012.03.17.15.05.35) with cloud architecture and
I would use SolrCloudServer from solrJ, but I received a
SolrServerException.

org.apache.solr.client.solrj.SolrServerException: No live SolrServers
available to handle this request
        at
org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:322)
        at
org.apache.solr.client.solrj.impl.CloudSolrServer.request(CloudSolrServer.java:257)

This is my Junit test code

                CloudSolrServer server = new CloudSolrServer(myEndPointZkHost);
                Map<String, String> map = new HashMap<String, String>();
                map.put("collection", "myCollectionName");
                map.put("q", "*:*");
                SolrParams q = new MapSolrParams(map);
                SolrRequest request = new QueryRequest(q );
                NamedList responseList = server.request(request);

and this is ZkStatus

live nodes:
[search01:8889_solr, search02:8889_solr, search01:8888_solr,
search02:8888_solr] 
collections:{
myCollectionName={
shard1=shard1:{
  "search01:8888_solr_myCollectionName":{
    "shard":"shard1",
    "leader":"true",
    "state":"active",
    "core":"myCollectionName",
    "collection":"myCollectionName",
    "node_name":"search01:8888_solr",
    "base_url":"http://search01:8888/solr"},
  "search02:8889_solr_myCollectionName":{
    "shard":"shard1",
    "state":"active",
    "core":"myCollectionName",
    "collection":"myCollectionName",
    "node_name":"search02:8889_solr",
    "base_url":"http://search02:8889/solr"},
  "replicas":{}}, 
shard2=shard2:{
  "search01:8889_solr_myCollectionName":{
    "shard":"shard2",
    "leader":"true",
    "state":"active",
    "core":"myCollectionName",
    "collection":"myCollectionName",
    "node_name":"search01:8889_solr",
    "base_url":"http://search01:8889/solr"},
  "search02:8888_solr_myCollectionName":{
    "shard":"shard2",
    "state":"active",
    "core":"myCollectionName",
    "collection":"myCollectionName",
    "node_name":"search02:8888_solr",
    "base_url":"http://search02:8888/solr"},
  "replicas":{}}
}


I'm doing something wrong? 
Thanks





--
View this message in context: 
http://lucene.472066.n3.nabble.com/SolrCloudServer-and-SolrServerException-No-live-SolrServers-available-tp4020091.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to