Ambari Infra Solr
Use the following steps to restore backed-up ambari infras solr data.
- Start Ambari-Infra service in Ambari UI.
-
Restore backed-up infra-solr data on the node where the infra-solr is
installed.
For unsecured cluster
curl -v "http://${INFRA_SOLR_URL}/solr/vertex_index/replication?command=restore&location=/path/to/backup/directory&name=vertex_index_backup" curl -v "http://${INFRA_SOLR_URL}/solr/edge_index/replication?command=restore&location=/path/to/backup/directory&name=edge_index_backup" curl -v "http://${INFRA_SOLR_URL}/solr/fulltext_index/replication?command=restore&location=/path/to/backup/directory&name=fulltext_index_backup" curl -v "http://${INFRA_SOLR_URL}/solr/ranger_audits/replication?command=restore&location=/path/to/backup/directory&name=ranger_audits_backup" curl -v "http://${INFRA_SOLR_URL}/solr/hadoop_logs/replication?command=restore&location=/path/to/backup/directory&name=hadoop_logs_backup" curl -v "http://${INFRA_SOLR_URL}/solr/audit_logs/replication?command=restore&location=/path/to/backup/directory&name=audit_logs_backup" curl -v "http://${INFRA_SOLR_URL}/solr/history/replication?command=restore&location=/path/to/backup/directory&name=history_backup"
For secured cluster
If the cluster is Kerberized, then you must kinit as the service principal.
curl -v --negotiate -u: "http://${INFRA_SOLR_URL}/solr/vertex_index/replication?command=restore&location=/path/to/backup/directory&name=vertex_index_backup" curl -v --negotiate -u: "http://${INFRA_SOLR_URL}/solr/edge_index/replication?command=restore&location=/path/to/backup/directory&name=edge_index_backup" curl -v --negotiate -u: "http://${INFRA_SOLR_URL}/solr/fulltext_index/replication?command=restore&location=/path/to/backup/directory&name=fulltext_index_backup" curl -v --negotiate -u: "http://${INFRA_SOLR_URL}/solr/ranger_audits/replication?command=restore&location=/path/to/backup/directory&name=ranger_audits_backup" curl -v --negotiate -u: "http://${INFRA_SOLR_URL}/solr/hadoop_logs/replication?command=restore&location=/path/to/backup/directory&name=hadoop_logs_backup" curl -v --negotiate -u: "http://${INFRA_SOLR_URL}/solr/audit_logs/replication?command=restore&location=/path/to/backup/directory&name=audit_logs_backup" curl -v --negotiate -u: "http://${INFRA_SOLR_URL}/solr/history/replication?command=restore&location=/path/to/backup/directory&name=history_backup"