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 iwo <iw...@gmail.com> on 2012/11/13 17:00:22 UTC

SolrCloudServer and SolrServerException No live SolrServers available

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.

Re: SolrCloudServer and SolrServerException No live SolrServers available

Posted by iwo <iw...@gmail.com>.
Hi,
With same configuration, same core, same data, but Solr 4.0 release my
project and junit test case works correctly by SolrCloudServer.
I'm working with Lucid Works Ent. that don't use last built solr version, we
asked to Lucid to upgrade solr.

Thanks



-----
Complicare è facile, semplificare é difficile. 
Complicated is easy, simple is hard.
quote: http://it.wikipedia.org/wiki/Bruno_Munari
--
View this message in context: http://lucene.472066.n3.nabble.com/SolrCloudServer-and-SolrServerException-No-live-SolrServers-available-tp4020091p4020357.html
Sent from the Solr - User mailing list archive at Nabble.com.