Reloading SolrCloud configuration (stored on Zookeeper) - schema.xml

Global Warrior picture Global Warrior · Apr 5, 2013 · Viewed 19.2k times · Source

I have setup a SolrCloud replication using standalone zookeeper. But now I wish to make some changes to my Schema.xml and reload the core. The problem is that when I run a single server Solr (no solrcloud) the new schema is loaded, but I do not know how to reload schema on all the replication server. I tried reloading the schema on one of the server with no desired impact. Is there a way in which I can reload my schema.xml in Solr in distributed replication setup which uses zookeeper.

Answer

Global Warrior picture Global Warrior · Apr 5, 2013

Just found the solution we need to push the changed configuration to zookeeper ensemble.

Just use

sh zkcli.sh -cmd upconfig -zkhost  127.0.0.1:2181  -collection collection1 -confname myconf -solrhome ../solr -confdir ../solr/collection1/conf

zkcli.sh is present under example/cloud-scripts