Re: Solrcloud error on finding active nodes.
On 1/28/2016 12:15 AM, Pranaya Behera wrote: > 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":"8000-d554", "state":"active", > "replicas":{}}, "shard2":{ "range":"d555-2aa9", > "state":"active", "replicas":{}}, "shard3":{ > "range":"2aaa-7fff", "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"; > With numShards=3 and replicationFactor=2, Solr will need to create six cores to satisfy the CREATE. With the further restrictions of maxShardsPerNode=1 and a list of three nodes to use, this request is impossible to fulfill. If this request appears to succeed but does not create a usable clusterstate, then there may be a bug in the detection of impossible CREATE requests. The request *should* have failed entirely, because it is not possible. I noticed that the parameters in the first message on this thread indicated maxShardsPerNode=2, so *that* request should have worked correctly. For each test that you are trying, you need to include what you tried, what you expected, and what actually happened. The info about what actually happened needs to be non-ambiguous. Screenshots and actual log entries are a good way to make sure the information is concrete and accurate. Don't send these things as attachments -- put them on appropriate sharing sites (gist, dropbox, etc.) and include URLs. https://wiki.apache.org/solr/UsingMailingLists Thanks, Shawn
Re: Solrcloud error on finding active nodes.
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":"8000-d554", "state":"active", "replicas":{}}, "shard2":{ "range":"d555-2aa9", "state":"active", "replicas":{}}, "shard3":{ "range":"2aaa-7fff", "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 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 cardERROR 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
Re: Solrcloud error on finding active nodes.
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":"8000-d554", "state":"active", "replicas":{}}, "shard2":{ "range":"d555-2aa9", "state":"active", "replicas":{}}, "shard3":{ "range":"2aaa-7fff", "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 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 cardERROR 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
Re: Solrcloud error on finding active nodes.
Hi, I am using solr 5.4.0. In the admin ui i can see for each node there are 2 shards with leader color. zookeeper is configured correctly as in the using the example config only on standalone server. 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 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 cardERROR 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
Re: Solrcloud error on finding active nodes.
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 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 cardERROR 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 > >
Solrcloud error on finding active nodes.
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 cardERROR 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