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 "michael.boom" <my...@yahoo.com> on 2013/10/17 10:36:10 UTC

Change config set for a collection

The question also asked some 10 months ago in
http://lucene.472066.n3.nabble.com/SolrCloud-4-1-change-config-set-for-a-collection-td4037456.html,
and then the answer was negative, but here it goes again, maybe now it's
different.

Is it possible to change the config set of a collection using the Collection
API to another one (stored in zookeeper)? If not, is it possible to do it
using zkCli ?

Also how can somebody check which config set a collection is using ?
Thanks!



--
View this message in context: http://lucene.472066.n3.nabble.com/Change-config-set-for-a-collection-tp4096032.html
Sent from the Solr - User mailing list archive at Nabble.com.

RE: Change config set for a collection

Posted by "michael.boom" <my...@yahoo.com>.
Thanks Garth!

Yes, indeed, I know that issue.
I had set up my SolrCloud using 4.5.0 and then encountered this problem, so
I rolled back to 4.4.0



-----
Thanks,
Michael
--
View this message in context: http://lucene.472066.n3.nabble.com/Change-config-set-for-a-collection-tp4096032p4096136.html
Sent from the Solr - User mailing list archive at Nabble.com.

RE: Change config set for a collection

Posted by Garth Grimm <Ga...@averyranchconsulting.com>.
But if you're working with multiple configs in zookeeper, be aware that 4.5 currently has an issue creating multiple collections in a cloud that has multiple configs.  It's targeted to be fixed whenever 4.5.1 comes out.

https://issues.apache.org/jira/i#browse/SOLR-5306


-----Original Message-----
From: Shawn Heisey [mailto:solr@elyograg.org] 
Sent: Thursday, October 17, 2013 10:24 AM
To: solr-user@lucene.apache.org
Subject: Re: Change config set for a collection

On 10/17/2013 2:36 AM, michael.boom wrote:
> The question also asked some 10 months ago in 
> http://lucene.472066.n3.nabble.com/SolrCloud-4-1-change-config-set-for
> -a-collection-td4037456.html, and then the answer was negative, but 
> here it goes again, maybe now it's different.
> 
> Is it possible to change the config set of a collection using the 
> Collection API to another one (stored in zookeeper)? If not, is it 
> possible to do it using zkCli ?
> 
> Also how can somebody check which config set a collection is using ?
> Thanks!

The zkcli command "linkconfig" should take care of that.  You'd need to reload the collection after making the change.  If you're using a version prior to 4.4, reloading doesn't work, you need to restart Solr completely.

You can see what config a collection is using with the Cloud->Tree section of the admin UI.  Open /collections and click on the collection.
 At the bottom of the right-hand window, it has a small JSON string with "configName" in it.  I don't know of a way to easily get this information from Solr with a program.  If your program is Java, you could very likely grab the zookeeper object from CloudSolrServer and find it that way, but I have no idea how to write that code.

Thanks,
Shawn


Re: Change config set for a collection

Posted by "michael.boom" <my...@yahoo.com>.
Thank you, Shawn!

"linkconfig" - that's exactly what i was looking for!



--
View this message in context: http://lucene.472066.n3.nabble.com/Change-config-set-for-a-collection-tp4096032p4096134.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Change config set for a collection

Posted by Shawn Heisey <so...@elyograg.org>.
On 10/17/2013 2:36 AM, michael.boom wrote:
> The question also asked some 10 months ago in
> http://lucene.472066.n3.nabble.com/SolrCloud-4-1-change-config-set-for-a-collection-td4037456.html,
> and then the answer was negative, but here it goes again, maybe now it's
> different.
> 
> Is it possible to change the config set of a collection using the Collection
> API to another one (stored in zookeeper)? If not, is it possible to do it
> using zkCli ?
> 
> Also how can somebody check which config set a collection is using ?
> Thanks!

The zkcli command "linkconfig" should take care of that.  You'd need to
reload the collection after making the change.  If you're using a
version prior to 4.4, reloading doesn't work, you need to restart Solr
completely.

You can see what config a collection is using with the Cloud->Tree
section of the admin UI.  Open /collections and click on the collection.
 At the bottom of the right-hand window, it has a small JSON string with
"configName" in it.  I don't know of a way to easily get this
information from Solr with a program.  If your program is Java, you
could very likely grab the zookeeper object from CloudSolrServer and
find it that way, but I have no idea how to write that code.

Thanks,
Shawn