On 24/02/14 13:04, Vineet Mishra wrote:
Can you brief as how to make a direct call to Zookeeper instead of Cloud
Collection(as currently I was querying the Cloud something like
*"http://192.168.2.183:8900/solr/collection1/select?q=*:*
<http://192.168.2.183:8900/solr/collection1/select?q=*:*>"* ) from UI, now
if I assume shard 8900 is down then how can I still make the call.
It is obvious that you cannot make the call to localhost:8900 - the
server listening to that port is down. You can make the call to any of
the other servers, though. Information about which Solr-servers are
running is available in ZooKeeper, CloudSolrServer reads that
information in order to know which servers to route requests to. As long
as localhost:8900 is down it will not route requests to that server.
You do not make a "direct call to ZooKeeper". ZooKeeper is not an HTTP
server that will receive your calls. It just has information about which
Solr-servers are up and running. CloudSolrServers takes advantage of
that information. You really cannot do without CloudSolrServer (or at
least LBHttpSolrServer), unless you write a component that can do the
same thing in some other language (if the reason you do not want to use
CloudSolrServer, is that your client is not java). Else you need to do
other clever stuff, like e.g. what Shalin suggests.
Regards, Per Steffensen