integrating solr4.0 and zookeeper

1.download the corresponding software from apache,my software verion as follows

environment
software version 
solr   apache-solr-4.0.0-BETA
zookeeper zookeeper-3.3.5

 

 

 

2.set up zookeeper cluster environment

 I have set up three zookeeper server as follows

server No ip:port
1 192.168.0.103:2181
2 192.168.0.200:2182
3 192.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:port
1 localhost:8983
2 localhost:7574
3 localhost:8900
4 localhost: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/solr  you can see the Cloud item, over!

posted on 2012-09-14 12:30  ukouryou  阅读(231)  评论(0编辑  收藏  举报

导航