Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SolrCloud ZooKeeper Configuration updates

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?

like image 887
Ravi Avatar asked Sep 06 '12 12:09

Ravi


People also ask

What is ZooKeeper SolrCloud?

Apache solr is most effective when used in cloud mode also called as SolrCloud — It is a distributed architecture focused on horizontal scaling where multiple nodes run instance of solr that communicate with each other through zookeeper.

Why do we need ZooKeeper in Solr?

ZooKeeper is a centralised service for maintaining configuration information in a distributed system. You can upload, download, and edit configuration files, so that all cores belonging to the same collection get same config set.


2 Answers

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.

like image 129
Lukasz Kujawa Avatar answered Oct 11 '22 13:10

Lukasz Kujawa


SolrCloud provides two option for uploading configuration files to ZK. If you have multiple cores while starting give option -Dbootstrap_conf=true. This will upload the index configuration files for all the cores. If you only want to upload configuration file of one core give two startup parameters -Dbootstrap_confdir and -Dcollection.configName.

like image 31
Saurabh Saxena Avatar answered Oct 11 '22 12:10

Saurabh Saxena