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 lansing <ha...@wantedanalytics.com> on 2013/11/27 16:43:30 UTC

Error when creating collection in Solr 4.6

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.

Re: Error when creating collection in Solr 4.6

Posted by Uwe Reh <re...@hebis.uni-frankfurt.de>.
Hi,

I had the same problem.
In my case the error was, I had a copy/paste typo in my solr.xml.
> "<str name="genericCoreNodeNames">${genericCoreNodeNames:true}</str>"
> !^^^^^!  	Ouch!
With the type 'bool' instead of 'str' it works definitely better. ;-)

Uwe



Am 28.11.2013 08:53, schrieb lansing:
> Thank you for your replies,
> I am using the new-style discovery
> It worked after adding this setting :
> <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
>
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Error-when-creating-collection-in-Solr-4-6-tp4103536p4103696.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: Error when creating collection in Solr 4.6

Posted by Erick Erickson <er...@gmail.com>.
Thanks for letting us know this is an issue with discovery mode
as well, I'd only run across old-style before.


On Thu, Nov 28, 2013 at 2:53 AM, lansing
<ha...@wantedanalytics.com>wrote:

> Thank you for your replies,
> I am using the new-style discovery
> It worked after adding this setting :
> <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
>
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Error-when-creating-collection-in-Solr-4-6-tp4103536p4103696.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Re: Error when creating collection in Solr 4.6

Posted by Yago Riveiro <ya...@gmail.com>.
Adding genericCoreNodeNames to solr.xml work for me.


-- 
Yago Riveiro
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Wednesday, December 11, 2013 at 10:47 PM, dboychuck wrote:

> Where did you add that directive? I am having the same problem.
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Error-when-creating-collection-in-Solr-4-6-tp4103536p4106248.html
> Sent from the Solr - User mailing list archive at Nabble.com (http://Nabble.com).
> 
> 



Re: Error when creating collection in Solr 4.6

Posted by dboychuck <db...@build.com>.
Where did you add that directive? I am having the same problem.



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

Re: Error when creating collection in Solr 4.6

Posted by lansing <ha...@wantedanalytics.com>.
Thank you for your replies,
I am using the new-style discovery 
It worked after adding this setting :
<bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>





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

Re: Error when creating collection in Solr 4.6

Posted by Erick Erickson <er...@gmail.com>.
Are you using old-style XML files with a <cores> tag
and maybe <core> tags as well? If so, see:
https://issues.apache.org/jira/browse/SOLR-5510

Short form: you may have better luck if you're using
old-style solr.xml files by adding:
 genericCoreNodeNames="${genericCoreNodeNames:true}
to your <cores> tag, something like:
<cores adminPath="/admin/cores" defaultCoreName="collection1"
      genericCoreNodeNames="${genericCoreNodeNames:true}">
    <core name="collection1" instanceDir="collection1"
coreNodeName="core_node1"/>
</cores>

But really, I'd use the new-style discovery instead. That's "the new way".

Best,
Erick


On Wed, Nov 27, 2013 at 11:03 AM, Yago Riveiro <ya...@gmail.com>wrote:

> Lansing,
>
> I ran the command without any issue
>
>
> http://localhost:8983/solr/admin/collections?action=CREATE&name=Current1&numShards=5&replicationFactor=3&maxShardsPerNode=15&collection.configName=default
>
> The only different was that I have only one box and used the default
> config from example folder.
>
> --
> Yago Riveiro
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>
>
> On Wednesday, November 27, 2013 at 3:43 PM, lansing wrote:
>
> >
> http://10.0.5.227:8101/solr/admin/collections?action=CREATE&name=Current1&numShards=5&replicationFactor=3&maxShardsPerNode=3&collection.
> (
> http://10.0.5.227:8101/solr/admin/collections?action=CREATE&name=Current1&numShards=5&replicationFactor=3&maxShardsPerNode=3&collection.configName=Current1
> )
>
>

Re: Error when creating collection in Solr 4.6

Posted by Yago Riveiro <ya...@gmail.com>.
Lansing, 

I ran the command without any issue

http://localhost:8983/solr/admin/collections?action=CREATE&name=Current1&numShards=5&replicationFactor=3&maxShardsPerNode=15&collection.configName=default

The only different was that I have only one box and used the default config from example folder. 

-- 
Yago Riveiro
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Wednesday, November 27, 2013 at 3:43 PM, lansing wrote:

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