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 yayati <ya...@gmail.com> on 2013/01/05 09:01:29 UTC
Problem occured in solr cloud set up
org.apache.solr.client.solrj.SolrServerException: No live SolrServers
available to handle this request
Hi Solr-users,
I am trying to set up solr cloud using solr trunk and followed example c of
solrcloud wiki . Instead of running all instances on same server. I have two
servers. ServerA and ServerB.
Set up is created with numShard=2
ServerA has 1 leader and 1 replica running on port 8983 and 8900
Server B has 1 leader and 1 replica running on port 7574 and 7500.
They all are using single embedded zookeeper server of 9983 . Cloud set up
on admin page shows all node green and up. Now problem is i committed a
document from exampledocs mem.xml on 8983 and 7574. Now when i fire query on
8983 and 8900 it show result.
But when i fire query on 7574 and 7500 i.e serverB, it it showing error ,
org.apache.solr.client.solrj.SolrServerException: No live SolrServers
available to handle this request:[http://serverA:8900/solr/collection1,
http://serverB:8983/solr/collection1]
Can someone help why this error coming. Since all nodes are up and green.
Why serverA is not able to connect to server B.??
Please respond asap.
Thanks
Yayati
--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-occured-in-solr-cloud-set-up-org-apache-solr-client-solrj-SolrServerException-No-live-SolrSet-tp4030829.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem occured in solr cloud set up org.apache.solr.client.solrj.SolrServerException:
No live SolrServers available to handle this request
Posted by Erick Erickson <er...@gmail.com>.
This is all quite strange, lots of people are using SolrCloud,
some with very large clusters, so I'm guessing it's something
in your setup that isn't obvious.
How certain are you that your network between the two
machines is reliable? And have you tried with a nightly build?
I'm grasping at straws because there's nothing obvious in what
you've told us so far, and I'm certain others aren't encountering
this problem...
Sorry I can't be more help,
Erick
On Sun, Jan 6, 2013 at 9:58 PM, yayati <ya...@gmail.com> wrote:
> No live SolrServers
Re: Problem occured in solr cloud set up
org.apache.solr.client.solrj.SolrServerException: No live SolrServers
available to handle this request
Posted by yayati <ya...@gmail.com>.
In addition to my above reply. This was the exception for reference on
hitting query on serverB (7500 or 7574)
<str name="msg">org.apache.solr.client.solrj.SolrServerException: No live
SolrServers available to handle this
request:[http://serverA:8900/solr/collection1,
http://serverA:8983/solr/collection1]</str><str
name="trace">org.apache.solr.common.SolrException:
org.apache.solr.client.solrj.SolrServerException: No live SolrServers
available to handle this request:[http://serverA:8900/solr/collection1,
http://serverA:8983/solr/collection1]
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:300)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1699)
at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:455)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:276)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at
--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-occured-in-solr-cloud-set-up-org-apache-solr-client-solrj-SolrServerException-No-live-SolrSet-tp4030829p4031162.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem occured in solr cloud set up
org.apache.solr.client.solrj.SolrServerException: No live SolrServers
available to handle this request
Posted by yayati <ya...@gmail.com>.
Erick,
I run 2 solr instances each on serverA and 2 on serverB.
Server A : 8983(leader), 8900(replica)
ServerB : 7574 (leader), 7500 (replica).
Please find the command below in the order in which they are started. Also i
am using single embedded zookeeper 9983 for all servers.
*serverA*
cd /example1a
java -DzkRun -DnumShards=2 -Dbootstrap_confdir=./solr/collection1/conf
-Dcollection.configName=myconf -jar start.jar
*serverB*
cd example2a
java -Djetty.port=7574 -DzkHost=serverA:9983 -jar start.jar
*serverA*
cd example 1b
java -Djetty.port=8900 -DzkHost=localhost:9983 -jar start.jar
*serverB*
example2b
java -Djetty.port=7500 -DzkHost=serverA:9983 -jar start.jar
With this order i can see all nodes up and healthy. I indexed using 8983 and
get result using query
http://serverA:8983/solr/collection1/select?q=*:*
But if i fired the same query using serverB
http://serverB:7500/solr/collection1/select?q=*:*
I am getting no live server exception. What could be the reason for this??
and how to resolve.
Thanks
http://serverA:8900/solr/collection1/select?q=*:*
--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-occured-in-solr-cloud-set-up-org-apache-solr-client-solrj-SolrServerException-No-live-SolrSet-tp4030829p4031160.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem occured in solr cloud set up org.apache.solr.client.solrj.SolrServerException:
No live SolrServers available to handle this request
Posted by Erick Erickson <er...@gmail.com>.
Well, if you indexed only one document, it will only be on one shard
determined by the hash of the <uniqueKey>, but that shouldn't give
the error you're seeing about live servers, and you should be seeing
the document no matter which server you query.
How exactly are you starting your servers?
On Sun, Jan 6, 2013 at 10:35 AM, yayati <ya...@gmail.com> wrote:
> Hi Erick,
>
> Yes i did update- i.e added a document using 8983. Ideally this update
> should go to all 8983,8900,7500,7574. And i fired query using 7500.
>
> Query is simple
>
> http://serverB:7500/solr/collection1/select?q=*:*
>
> But this give me error as mentioned in my previous post. No live
> server.....
>
> But, When i fire same query on serverA 8983
>
> http://serverB:8983/solr/collection1/select?q=*:*
>
> I can see the result.
>
> Please tell, i can fire query on any server... As document must be updated
> to all..? also how to resolve this error.. Is this bug in solr cloud?
>
> Thanks
> Yayati
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Problem-occured-in-solr-cloud-set-up-org-apache-solr-client-solrj-SolrServerException-No-live-SolrSet-tp4030829p4031105.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
Re: Problem occured in solr cloud set up
org.apache.solr.client.solrj.SolrServerException: No live SolrServers
available to handle this request
Posted by yayati <ya...@gmail.com>.
Hi Erick,
Yes i did update- i.e added a document using 8983. Ideally this update
should go to all 8983,8900,7500,7574. And i fired query using 7500.
Query is simple
http://serverB:7500/solr/collection1/select?q=*:*
But this give me error as mentioned in my previous post. No live server.....
But, When i fire same query on serverA 8983
http://serverB:8983/solr/collection1/select?q=*:*
I can see the result.
Please tell, i can fire query on any server... As document must be updated
to all..? also how to resolve this error.. Is this bug in solr cloud?
Thanks
Yayati
--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-occured-in-solr-cloud-set-up-org-apache-solr-client-solrj-SolrServerException-No-live-SolrSet-tp4030829p4031105.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem occured in solr cloud set up org.apache.solr.client.solrj.SolrServerException:
No live SolrServers available to handle this request
Posted by Erick Erickson <er...@gmail.com>.
This is a little confusing, could you post the exact
queries you're using? Because it looks like you're
firing the update to two servers. This is unnecessary,
you should send the update only once, to any
server in the cluster. Ditto with the query...
Best
Erick
On Sat, Jan 5, 2013 at 3:01 AM, yayati <ya...@gmail.com> wrote:
> Hi Solr-users,
>
> I am trying to set up solr cloud using solr trunk and followed example c of
> solrcloud wiki . Instead of running all instances on same server. I have
> two
> servers. ServerA and ServerB.
>
>
> Set up is created with numShard=2
>
> ServerA has 1 leader and 1 replica running on port 8983 and 8900
> Server B has 1 leader and 1 replica running on port 7574 and 7500.
>
> They all are using single embedded zookeeper server of 9983 . Cloud set up
> on admin page shows all node green and up. Now problem is i committed a
> document from exampledocs mem.xml on 8983 and 7574. Now when i fire query
> on
> 8983 and 8900 it show result.
>
> But when i fire query on 7574 and 7500 i.e serverB, it it showing error ,
>
> org.apache.solr.client.solrj.SolrServerException: No live SolrServers
> available to handle this request:[http://serverA:8900/solr/collection1,
> http://serverB:8983/solr/collection1]
>
> Can someone help why this error coming. Since all nodes are up and green.
> Why serverA is not able to connect to server B.??
>
> Please respond asap.
> Thanks
> Yayati
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Problem-occured-in-solr-cloud-set-up-org-apache-solr-client-solrj-SolrServerException-No-live-SolrSet-tp4030829.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>