修改SolrCloud在ZooKeeper中的配置文件操作记录。
命令执行目录:
/opt/solr-5.5.4/server/scripts/cloud-scripts/
1、下载配置文件
./zkcli.sh -zkhost 172.16.xxx.xx:2181,172.16.xxx.xx:2181,172.16.xxx.xx:2181 -cmd getfile /configs/myconf/managed-schema /home/application/managed-schema ./zkcli.sh -zkhost 172.16.xxx.xx:2181,172.16.xxx.xx:2181,172.16.xxx.xx:2181 -cmd getfile /configs/myconf/solrconfig.xml /home/application/solrconfig.xml
2、修改配置文件
vi
3、上传配置文件
./zkcli.sh -zkhost 172.16.xxx.xx:2181,172.16.xxx.xx:2181,172.16.xxx.xx:2181 -cmd putfile /configs/myconf/managed-schema /home/application/managed-schema ./zkcli.sh -zkhost 172.16.xxx.xx:2181,172.16.xxx.xx:2181,172.16.xxx.xx:2181 -cmd putfile /configs/myconf/solrconfig.xml /home/application/solrconfig.xml
4、重新加载配置文件
http://172.16.xxx.xxx:8983/solr/admin/collections?action=RELOAD&name=CollectionName