您的位置:首页 > 其它

solr 一 getting start

2014-12-29 14:03 211 查看
/article/4791903.html

http://www.chepoo.com/solrcloud-introduction.html

/article/4620273.html

http://wenku.baidu.com/link?url=b0PifkghK0JMoMP2RgRaR1X4LP4t8Eu72BpffTQ1uDArMgUjYF1tq7qJbli7L3IkKAVRjasY0sV18U3g-MD2yV01fkYsWXM-d0LC5m28RCK

/article/10903063.html

集群模式下

1.upload 每个collection的conf目录到zookeeper

linkconf 与collection

这两步将会自zookeeper的根目录下生成连个节点:

configs,collections

configs 里面会生成每个collection_conf的子目录,conf下面的内容会upload到相应的子目录

collections里面会生成每个xxx_collection的子目录,初始每个子目录为空

2.配置好solr.xml里面的zkhost和每个solrhome中每个collection下面core后,启动solr web所在的tomcat,即将该node加入zookeeper中:

1)设置zookeeperclient:

org.apache.solr.core.ZkContainer – Zookeeper client=

2)zookeeper下面创建overseer节点:

org.apache.solr.common.cloud.SolrZkClient – makePath: /overseer/queue

org.apache.solr.common.cloud.SolrZkClient – makePath: /overseer/collection-queue-work

3)创建live_nodes节点并将当前server host注册到live_nodes中

org.apache.solr.common.cloud.SolrZkClient – makePath: /live_nodes

4)创建overseer_elect节点

makePath: /overseer_elect/election

org.apache.solr.common.cloud.SolrZkClient – makePath: /overseer_elect/leader

5) 创建overseer/queue-work

6)创建/clusterstate.json

7)创建/aliases.json

8) 在solr home目录下找到各个collection的core定义。

9)在zookeeper中找core node,并更新collections下每个collection的信息(leaders,leader_elec)


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: