Hi,
I am using solr 4.6, with external zookeeper 3.4.5
5 nodes, 5 shards, 3 replicas.
I uploaded collection configuration in zookeepr.
I am using the new core discovery mode

I have this issue when I try to create a collection with this call :

http://10.0.5.227:8101/solr/admin/collections?action=CREATE&name=Current1&numShards=5&replicationFactor=3&maxShardsPerNode=3&collection.configName=Current1

I get this response :
<response><lst name="responseHeader"><int name="status">0</int><int
name="QTime">576</int></lst><lst
name="failure"><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard3_replica1':
10.0.5.227:8101_solr_Current1_shard3_replica1 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard1_replica2':
10.0.5.227:8101_solr_Current1_shard1_replica2 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard4_replica3':
10.0.5.227:8101_solr_Current1_shard4_replica3 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard5_replica1':
10.0.5.229:8101_solr_Current1_shard5_replica1 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard1_replica3':
10.0.5.229:8101_solr_Current1_shard1_replica3 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard3_replica2':
10.0.5.229:8101_solr_Current1_shard3_replica2 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard5_replica3':
10.0.5.230:8101_solr_Current1_shard5_replica3 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard4_replica1':
10.0.5.230:8101_solr_Current1_shard4_replica1 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard2_replica2':
10.0.5.230:8101_solr_Current1_shard2_replica2 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard5_replica2':
10.0.5.228:8101_solr_Current1_shard5_replica2 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard2_replica1':
10.0.5.228:8101_solr_Current1_shard2_replica1 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard3_replica3':
10.0.5.228:8101_solr_Current1_shard3_replica3 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard1_replica1':
10.0.5.231:8101_solr_Current1_shard1_replica1 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard2_replica3':
10.0.5.231:8101_solr_Current1_shard2_replica3 is
removed</str><str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
CREATEing SolrCore 'Current1_shard4_replica2':
10.0.5.231:8101_solr_Current1_shard4_replica2 is
removed</str></lst></response>  


The clusterstate.json in zookeeper :
{"Current1":{
    "shards":{
      "shard1":{
        "range":"80000000-b332ffff",
        "state":"active",
        "replicas":{}},
      "shard2":{
        "range":"b3330000-e665ffff",
        "state":"active",
        "replicas":{}},
      "shard3":{
        "range":"e6660000-1998ffff",
        "state":"active",
        "replicas":{}},
      "shard4":{
        "range":"19990000-4ccbffff",
        "state":"active",
        "replicas":{}},
      "shard5":{
        "range":"4ccc0000-7fffffff",
        "state":"active",
        "replicas":{}}},
    "maxShardsPerNode":"3",
    "router":{"name":"compositeId"},
    "replicationFactor":"3"}}

Note :This setup worked fine under solr 4.5.1




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Error-when-creating-collection-in-Solr-4-6-tp4103536.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to