solrcloud 4.3 installation

1: First install zookeeper and tomcat
to install zookeeper Steps
http://liliang68.iteye.com/blog/2231799
2: Put solr-4.3.1/example/webapps/solr.war under the webapps of tomcat, then start tomcat, will automatically decompress solr.war
3 cp -r solr-4.3.1/example/lib/ext/* apache-tomcat-7.0.10/webapps/solr/WEB-INF/lib/
4:cp solr-4.3. 1/example/resources/log4j.properties apache-tomcat-7.0.10//lib/
5: Create a new solr_home folder cp -r solr-4.3.1/example/solr/* solr_home
6: Create a new solr_lib folder cp apache-tomcat-7.0.10/webapps/solr/WEB-INF/lib/* solr-lib/
7: Modify tomcat startup parameters 
and add
JAVA_OPTS="-Dsolr.solr.home=/usr/local/solr/ to the file solr_home -DzkHost=hadoop1:2188,hadoop2:2188,hadoop3:2188"How

to upload zookeeper manually
java -classpath .:/usr/local/solr/solr-lib/* org.apache.solr.cloud.ZkCLI -zkhost hadoop1:2188 -cmd upconfig -confdir /usr/local/solr/solr_home/collection1/conf -confname After the collection1 is

uploaded, start tomcat 
http://hadoop1:8080/solr/#/



Even if the configuration is complete

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326283312&siteId=291194637