Community Articles
Find and share helpful community-sourced technical articles
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Labels (1)
Not applicable

Solr core/shard backup and restore function ONLY became available after version 5.2 . See JIRA: https://issues.apache.org/jira/browse/SOLR-6637

To manually backup and restore shards, please follow the steps : Assumes a SolrCloud cluster has 4 cores and 2 node, which 2 cores on each node. (2 shards, with replicationFactor=2) Back-up each node:
http://server1:8983/solr/collection/replication?command=backup&location=location1&name=backup1 

http://server2:8983/solr/collection/replication?command=backup&location=location2&name=backup2
Create new collection with 2 shards and replicationFactor=2
http://server:8983/solr/admin/collections?action=CREATE&name=newCollection&numShards=2&replicationFa...
Restore from each backup:
http://server1:8983/solr/newCollection/replication?command=restore&location=location1&name=backup1 

http://server2:8983/solr/collection/replication?command=restore&location=location2&name=backup2
Add replicas to each shard
http://server:8983/solr/admin/collections?action=ADDREPLICA&collection=newCollection&shard=shard2&no... 

http://server:8983/solr/admin/collections?action=ADDREPLICA&collection=newCollection&shard=shard1&no...
In the API commands where we just have "server" without 1 or 2, it means you can issue the command from either server.
1,414 Views
Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎03-31-2017 06:32 PM
Updated by:
 
Contributors
Top Kudoed Authors