Zookeeper can manage the configuration files of SOLR and other software. The configuration file is stored on the disk of the Linux server, but it does not change the location where SOLR reads the SOLR/home configuration file.
Currently, the SOLR/home configuration file is located in two places:
E: \ apache-Tomcat-7.0.23 \ conf \ Catalina \ localhost \ SOLR. xml
Web. xml configuration file in the war package of SOLR
You can use system. getproperty ("") to add it to the SOLR source code to obtain the code segment of the solrhome configuration file.
The logic for obtaining the solrhome configuration file from SOLR source code is as follows:
Three times.
Refer to the following official documents:
Http://www.ibm.com/developerworks/cn/java/j-zookeeper/
Https://cwiki.apache.org/confluence/display/solr/Using+ZooKeeper+to+Manage+Configuration+Files
Https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities
Https://cwiki.apache.org/confluence/display/solr/Setting+Up+an+External+ZooKeeper+Ensemble
Http://zookeeper.apache.org/doc/r3.4.5/zookeeperStarted.html
Https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud
Https://cwiki.apache.org/confluence/display/solr/SolrCloud
Zookeeper manages SOLR configuration files