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 yriveiro <ya...@gmail.com> on 2013/03/25 18:28:16 UTC

Error creating collection using CORE-API

Hi,

I'm having an issue when I trying to create a collection:


curl
http://192.168.1.142:8983/solr/admin/cores?action=CREATE&name=RT-4A46DF1563_12&collection=RT-4A46DF1563_12&shard=00&collection.configName=reportssBucket-regular


The curl call has an error because the collection.configName doesn't exists,
then I fixed the curl call to:


curl
http://192.168.1.142:8983/solr/admin/cores?action=CREATE&name=RT-4A46DF1563_12&collection=RT-4A46DF1563_12&shard=00&collection.configName=reportsBucket-regular


But now I have this stacktrace:

INFO: Creating SolrCore 'RT-4A46DF1563_12' using instanceDir:
/Users/yriveiro/Dump/solrCloud/node00.solrcloud/solr/home/RT-4A46DF1563_12
Mar 25, 2013 5:15:35 PM org.apache.solr.cloud.ZkController
createCollectionZkNode
INFO: Check for collection zkNode:RT-4A46DF1563_12
Mar 25, 2013 5:15:35 PM org.apache.solr.cloud.ZkController
createCollectionZkNode
INFO: Collection zkNode exists
Mar 25, 2013 5:15:35 PM org.apache.solr.cloud.ZkController readConfigName
INFO: Load collection config from:/collections/RT-4A46DF1563_12
Mar 25, 2013 5:15:35 PM org.apache.solr.cloud.ZkController readConfigName
SEVERE: Specified config does not exist in ZooKeeper:reportssBucket-regular
Mar 25, 2013 5:15:35 PM org.apache.solr.core.CoreContainer recordAndThrow
SEVERE: Unable to create core: RT-4A46DF1563_12
org.apache.solr.common.cloud.ZooKeeperException: Specified config does not
exist in ZooKeeper:reportssBucket-regular


In fact the collection is in zookeeper as a file and not as a folder, the
question here is: If the CREATE command doesn't find the config, why it's
created a file? and Why after this, I can't run the command again with the
correct syntax without remove the file create by the failed CREATE command?



-----
Best regards
--
View this message in context: http://lucene.472066.n3.nabble.com/Error-creating-collection-using-CORE-API-tp4051156.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Error creating collection using CORE-API

Posted by Joel Bernstein <jo...@gmail.com>.
What version of Solr are you using? I'll see if I can reproduce the problem.

Your initial error, which I believe was because Solr could not find the
matching config-set in zookeeper, I've run into many times. But I've never
had a problem when I've re-issued the command with a matching config-set.


On Mon, Mar 25, 2013 at 1:28 PM, yriveiro <ya...@gmail.com> wrote:

> Hi,
>
> I'm having an issue when I trying to create a collection:
>
>
> curl
>
> http://192.168.1.142:8983/solr/admin/cores?action=CREATE&name=RT-4A46DF1563_12&collection=RT-4A46DF1563_12&shard=00&collection.configName=reportssBucket-regular
>
>
> The curl call has an error because the collection.configName doesn't
> exists,
> then I fixed the curl call to:
>
>
> curl
>
> http://192.168.1.142:8983/solr/admin/cores?action=CREATE&name=RT-4A46DF1563_12&collection=RT-4A46DF1563_12&shard=00&collection.configName=reportsBucket-regular
>
>
> But now I have this stacktrace:
>
> INFO: Creating SolrCore 'RT-4A46DF1563_12' using instanceDir:
> /Users/yriveiro/Dump/solrCloud/node00.solrcloud/solr/home/RT-4A46DF1563_12
> Mar 25, 2013 5:15:35 PM org.apache.solr.cloud.ZkController
> createCollectionZkNode
> INFO: Check for collection zkNode:RT-4A46DF1563_12
> Mar 25, 2013 5:15:35 PM org.apache.solr.cloud.ZkController
> createCollectionZkNode
> INFO: Collection zkNode exists
> Mar 25, 2013 5:15:35 PM org.apache.solr.cloud.ZkController readConfigName
> INFO: Load collection config from:/collections/RT-4A46DF1563_12
> Mar 25, 2013 5:15:35 PM org.apache.solr.cloud.ZkController readConfigName
> SEVERE: Specified config does not exist in ZooKeeper:reportssBucket-regular
> Mar 25, 2013 5:15:35 PM org.apache.solr.core.CoreContainer recordAndThrow
> SEVERE: Unable to create core: RT-4A46DF1563_12
> org.apache.solr.common.cloud.ZooKeeperException: Specified config does not
> exist in ZooKeeper:reportssBucket-regular
>
>
> In fact the collection is in zookeeper as a file and not as a folder, the
> question here is: If the CREATE command doesn't find the config, why it's
> created a file? and Why after this, I can't run the command again with the
> correct syntax without remove the file create by the failed CREATE command?
>
>
>
> -----
> Best regards
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Error-creating-collection-using-CORE-API-tp4051156.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Joel Bernstein
Professional Services LucidWorks