Ambari Managed HDF Upgrade
Also available as:
PDF

Migrate and Restore Ambari Infra

Follow the steps below to restore the data you previously backed up.

  1. SSH to the host where the migrationConfigGenerator.py was run prior to the HDP Upgrade. This will be from one of your Ambari Infra Solr instances. Please ensure you are in the current working directory containing theambari_solr_migration.ini file.
  2. Export the variable used to hold the path to the ini file.
    export CONFIG_INI_LOCATION=ambari_solr_migration.ini
  3. Migrate the data to ensure it’s in the right format to import into Solr 7. Please note that this script can take a long time to run depending on the volume of data backed up. It is recommended to run this script using the nohup command.
    nohup /usr/lib/ambari-infra-solr-client/ambariSolrMigration.sh --ini-file
                $CONFIG_INI_LOCATION --mode migrate-restore > migrate_restore_output.txt 2>&1
              &

    To observe the progress of the migrate and restore process, simply tail the migrate_restore_output.txt file.

    tail -f migrate_restore_output.txt
  4. Re-index the migrated data into your current collections so the backed up data is visible in all of the tools using the Infra Solr instances. Please note that this script can take a long time to run depending on the volume of data backed up. It is recommended to run this script using the nohup command.
    nohup /usr/lib/ambari-infra-solr-client/ambariSolrMigration.sh --ini-file
                $CONFIG_INI_LOCATION --mode transport > transport_output.txt 2>&1 &

    To observe the progress of the transport process, simply tail the transport_output.txt file:

    tail -f transport_output.txt