Ambari Infra Solr
Use the following steps to restore backed-up ambari infras solr data.
-
Downgrade ambari-infra-solr, ambari-infra-solr-client packages on all hosts
where they are installed.
Run the following command on all hosts running the infra Solr Instance:
yum downgrade ambari-infra-solr
Run the following command on all hosts running the infra Solr Client:yum downgrade ambari-infra-solr-client
-
Restore backed-up infra-solr data on the node where the infra-solr is
installed.
Start the Ambari-Infra service in Ambari UI and run the following commands:
For unsecured clustercurl -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"
- Start Ambari-Infra in Ambari UI.