Solr叢集配置檔案上傳
1.Tomcat為伺服器部署solr
2. sorl.xml檔案修改為tomcat的Ip和Port
3.Tomcat註冊zookeeper
3.1.apache-tomcat-7.0.69\bin\catalina.sh
3.2.新增JAVA_OPTS="-DzkHost=10.143.47.16:2181,10.143.47.17:2181"
3.3 累加就可JAVA_OPTS="-Xms1024m -Xmx5120m -Xss1024K
-XX:PermSize=512m -XX:MaxPermSize=1024m
- DzkHost=10.143.47.16:2181,10.143.47.17:2181"
4.上傳solr配置檔案到zookeeper
4.1進入linux目錄 cd /home/solr-5.4.1/server/scripts/cloud-scripts
4.2上傳 ./zkcli.sh -zkhost 10.143.47.16:2181,10.143.47.17:2181
-cmd upconfig -confdir /home/solr/solrhome/qfy/conf
-confname qfy
4.3修改單個配置檔案 ./zkcli.sh -zkhost 10.143.47.16:2181,10.143.47.17:2181
-cmd putfile /configs/qfy/solrconfig.xml
/home/solr-5.4.1/server/scripts/cloud-scripts/testconf/qfy/conf/solrconfig.xml
5.檢視上傳至zookeeper的配置檔案
5.1 /zkCli.sh -server 10.143.47.16:2181,10.143.47.17:2181
5.2 ls/