Solr:如何将solrcloud 5.5.1升级到6.6.0

时间:2017-07-10 09:22:33

标签: linux solr centos apache-zookeeper solrcloud

我想将solrcloud升级到CentOS.IS中的最新版本,有一步一步来完成这个过程。而且我也不想放松我的索引。

1 个答案:

答案 0 :(得分:0)

Lets answers your question by taking example. Assume that below is your Solr Cloud structure.

  • Shard1
    • node1 (20 docs) (5.5.1)
    • node2 (20 docs) (5.5.1)
  • Shard2
    • node3 (20 docs) (5.5.1)
    • node4 (20 docs) (5.5.1)

Now you will add a replica to both of the shards.
First you add two nodes to Zookeeper. But this both nodes will be of Solr 6.6.0.

bin/solr start -cloud -s /Users/XYZ/Downloads/solr-6.5.0/example/cloud/node6/solr -p 8957 -z localhost:9983

Add one replica to Both shards

localhost:8983/solr/admin/collections?action=ADDREPLICA&collection=collectionName&shard=shard1
localhost:8983/solr/admin/collections?action=ADDREPLICA&collection=collectionName&shard=shard2

After adding replicas your Solr Cloud Structure will look like :-

  • Shard1
    • node1 (20 docs) (5.5.1)
    • node2 (20 docs) (5.5.1)
    • node5 (20 docs) (6.6.0)
  • Shard2
    • node3 (20 docs) (5.5.1)
    • node4 (20 docs) (5.5.1)
    • node6 (20 docs) (6.6.0)

Remove node1, node2, node3 and node4. Your cloud structure will be in Solr 6.6.0.