Remove Existing Collections and Upgrade Binaries

Once the database has been backed up, the old collections need to be deleted, and the Ambari Infra Solr, and Log Search (if installed) components need to be upgraded.

  • To do all of that, run the following script:
    /usr/lib/ambari-infra-solr-client/ambariSolrMigration.sh \
    --ini-file $CONFIG_INI_LOCATION \
    --mode delete | tee delete_output.txt

    During this process, the script generates Ambari tasks that are visible in the Background Operations dialog in the Ambari Server.

    After the process has completed, retain the output of the script for your records. This output is helpful when debugging any issues that may occur during the migration process.

  • Starting services in Ambari
    1. Enable the ignore_groupsusers_create property by running the following commands from the ambari server host cd /var/lib/ambari-server/resources/scripts
      python configs.py -l <AMBARI_HOST> -t <AMBARI_PORT> -u <ADMIN_USERNAME> -p <ADMIN_PASSWORD> \ -n <CLUSTER_NAME> -a set -s http -c cluster-env -k ignore_groupsusers_create -v true
    2. After the ignore_groupsusers_create property is enabled, start services using Ambari and proceed with the upgrade.
    3. After this step is completed, you must revert the ignore_groupsusers_create property by running the following commands from the ambari server host cd /var/lib/ambari-server/resources/scripts
      python configs.py -l <AMBARI_HOST> -t <AMBARI_PORT> -u <ADMIN_USERNAME> -p <ADMIN_PASSWORD> \ -n <CLUSTER_NAME> -a set -s http -c cluster-env -k ignore_groupsusers_create -v false