yao000 发表于 2015-9-7 07:17:44

integrating solr4.0 and zookeeper

  1.download the corresponding software from apache,my software verion as follows
environmentsoftwareversion solr  apache-solr-4.0.0-BETAzookeeperzookeeper-3.3.5  
  
  
  2.set up zookeeper cluster environment
  I have set up three zookeeper server as follows
server Noip:port1192.168.0.103:21812192.168.0.200:21823192.168.0.9:2183  
  
  
  ps:suppose you have the basic knowledge about zookeeper
  3.set up solr cluster environment
  you can refer to http://wiki.apache.org/solr/SolrCloud/

[*] my solr configuration as follows
server No ip:port1localhost:89832localhost:75743localhost:89004localhost:7500  
  
  
  

[*]   send solr configuration to zookeeper
  
  
  ./cloud-scripts/zkcli.sh -cmd upconfig -confdir /home/andy/solr4/example/solr/collection1/conf/ -confname collection1 -z 192.168.0.103:2181
  start up solr server
  java -DnumShards=2 -DzkHost=192.168.0.103:2181,192.168.0.200:2182,192.168.0.9:2183 -Djetty.port=8983-jar start.jar
  4. access http://localhost:8983/solryou can see the Cloud item, over!
页: [1]
查看完整版本: integrating solr4.0 and zookeeper