Right, the comments about source control are a bit misleading, that's
just where _I'd_ keep my configs ;). You can pull the configs from
Zookeeper as well with the "downconfig", see:
https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities

As to why the file doesn't seem to change, that's a puzzle. If you've
uploaded the file to Zookeeper correctly, you should be able to go
into the Cloud>>Tree>>configs>>db_config and see a list of config
files in ZK, then click on one to see the contents of that file as a
sanity check.

Please do _not_ do anything with the core admin screen/api except,
possibly, look at things. Reloading a core won't help if you happen to
hit some _other_ replica with your command, use the collections API to
reload the _collection_ instead. Although if that was the problem
you'd have gotten around it when you restarted the cloud.

Best,
Erick

On Wed, Nov 4, 2015 at 3:50 PM, Aswath Srinivasan (TMS)
<aswath.sriniva...@toyota.com> wrote:
> Hi fellow SOLR developers,
>
> https://cwiki.apache.org/confluence/display/solr/Using+ZooKeeper+to+Manage+Configuration+FilesThis
>  link says the below
>
> To update or change your SolrCloud configuration files:
>
>  1. Download the latest configuration files from ZooKeeper, using the
>
>     source control checkout process.
>
>  2. Make your changes. Commit your changed file to source control.
>
>  3. Push the changes back to ZooKeeper.
>
>  4. Reload the collection so that the changes will be in effect.
>
>
>
> But I was wondering if there are some examples or articles somewhere which 
> can help me do this. For instance, how would one download the latest config 
> files from zookeeper? Or should I know Zoopkeeper in-and-out to do this?
>
> Version 5.3.1 is what I'm using
>
> I updated the synonym file in the 
> "C:\12345\solrcloud\solr-5.3.1\example\example-DIH\solr\db\conf" folder and 
> I'm using the below command
>
> zkcli -zkhost localhost:2181,localhost:2182,localhost:2183 -cmd upconfig 
> -confname db_config -confdir 
> "C:\12345\solrcloud\solr-5.3.1\example\example-DIH\solr\db\conf"
>
> But the file doesn't seem to change nor the query seem to work. I reloaded 
> the core which did not help too. I even tried restarting my solrcloud
>

Reply via email to