Its only happening when I specify the createNodeSet (list of nodes comma
separated). If I remove this then it works as expected.
On Thursday 28 January 2016 12:45 PM, Pranaya Behera wrote:
Hi,
I have checked in the admin UI and now I have created 3 shards 2
replicas for each shard and 1 shard per node. This is what I get:
{"card":{ "replicationFactor":"2", "router":{"name":"compositeId"},
"maxShardsPerNode":"1", "autoAddReplicas":"false", "shards":{
"shard1":{ "range":"80000000-d554ffff", "state":"active",
"replicas":{}}, "shard2":{ "range":"d5550000-2aa9ffff",
"state":"active", "replicas":{}}, "shard3":{
"range":"2aaa0000-7fffffff", "state":"active", "replicas":{}}}}} There
is no replica. How is this possible? This is what I used to create the
collection: curl
"http://localhost:8983/solr/admin/collections?action=CREATE&name=card&numShards=3&replicationFactor=2&maxShardsPerNode=1&createNodeSet=localhost:8983_solr,localhost:8984_solr,localhost:8985_solr&createNodeSet.shuffle=true&collection.configName=igp"
On Thursday 28 January 2016 03:16 AM, Susheel Kumar wrote:
Hi,
I haven't seen this error before but which version of Solr you are using &
assume zookeeper is configured correctly. Do you see nodes
down/active/leader etc. under Cloud in Admin UI?
Thanks,
Susheel
On Wed, Jan 27, 2016 at 11:51 AM, Pranaya Behera<pranaya.beh...@igp.com>
wrote:
Hi,
I have created one solrcloud collection with this
`curl"
http://localhost:8983/solr/admin/collections?action=CREATE&name=card&numShards=2&replicationFactor=2&maxShardsPerNode=2&createNodeSet=localhost:8983,localhost:8984,localhost:8985&collection.configName=igp
"
It gave me success. And when I saw in solr admin ui: i got to see the
collection name as card and pointing to two shards in the radial graph but
nothing on the graph tab. Both shards are in leader color.
When I tried to index data to this collection it gave me this error:
Indexing card::::ERROR StatusLogger No log4j2 configuration file found.
Using default configuration: logging only errors to the console.
16:49:21.899 [main] ERROR
org.apache.solr.client.solrj.impl.CloudSolrClient - Request to collection
card failed due to (510) org.apache.solr.common.SolrException: Could not
find a healthy node to handle the request., retry? 0
16:49:21.911 [main] ERROR
org.apache.solr.client.solrj.impl.CloudSolrClient - Request to collection
card failed due to (510) org.apache.solr.common.SolrException: Could not
find a healthy node to handle the request., retry? 1
16:49:21.915 [main] ERROR
org.apache.solr.client.solrj.impl.CloudSolrClient - Request to collection
card failed due to (510) org.apache.solr.common.SolrException: Could not
find a healthy node to handle the request., retry? 2
16:49:21.925 [main] ERROR
org.apache.solr.client.solrj.impl.CloudSolrClient - Request to collection
card failed due to (510) org.apache.solr.common.SolrException: Could not
find a healthy node to handle the request., retry? 3
16:49:21.928 [main] ERROR
org.apache.solr.client.solrj.impl.CloudSolrClient - Request to collection
card failed due to (510) org.apache.solr.common.SolrException: Could not
find a healthy node to handle the request., retry? 4
16:49:21.931 [main] ERROR
org.apache.solr.client.solrj.impl.CloudSolrClient - Request to collection
card failed due to (510) org.apache.solr.common.SolrException: Could not
find a healthy node to handle the request., retry? 5
org.apache.solr.common.SolrException: Could not find a healthy node to
handle the request.
at
org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1085)
at
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:871)
at
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:954)
at
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:954)
at
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:954)
at
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:954)
at
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:954)
at
org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:807)
at
org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:150)
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:107)
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:72)
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:86)
at com.igp.solrindex.CardIndex.index(CardIndex.java:75)
at com.igp.solrindex.App.main(App.java:19)
Why I am getting error ?
--
Thanks & Regards
Pranaya Behera
--
Thanks & Regards
Pranaya Behera
--
Thanks & Regards
Pranaya Behera