SolrCloud ZooKeeper Configuration updates

Ravi picture Ravi · Sep 6, 2012 · Viewed 7.4k times · Source

How do I update an existing configuration file of SolrCloud in the Zoo Keeper?

I am using Solr4 Beta version with ZooKeeper 3.3.6. I have updated a configuration file, and restarted the Solr Instance which uploads the configuration file to the ZooKeeper. But when I check the configuration file from the SolrCloud Admin console, I don't see the updates. I am not able to understand if this is an issue with SolrCloud admin console or if I am not successful in uploading the config file to ZooKeeper.

Can someone who is familiar with ZooKeeper tell me on how to update an existing configuration file in the ZooKeeper, and how to verify the change in the ZooKeeper?

Answer

Lukasz Kujawa picture Lukasz Kujawa · Apr 11, 2013

Solr 4 comes with some helpful scripts

cloud-scripts/zkcli.sh -cmd upconfig -zkhost 127.0.0.1:2181 -d solr/your_default_collection_with_the_config/conf/ -n config_name_userd_by_all_collections

After that you have to reload cores.