Ambari Infra Solr

Use the following steps to restore backed-up ambari infras solr data.

  1. Downgrade ambari-infra-solr, ambari-infra-solr-client packages on all hosts where they are installed.
    Execute the following command on all hosts running the infra Solr Instance:
    yum downgrade ambari-infra-solr 
    Execute the following command on all hosts running the infra Solr Client:
    yum downgrade ambati-infra-solr-client
  2. Restore backed-up infra-solr data on the node where the infra-solr is installed.

    Start Ambari-Infra service in Ambari UI then execute the following commands:

    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" 
    
  3. Start Ambari-Infra in Ambari UI.