Pre-requisites for Configuration Backup

Pre-upgrade

Before proceeding with the upgrade, ensure to execute the following command:

Bash
Copy

Post-upgrade

After completing the upgrade, to restore the configurations for a specific service, execute the following code:

Bash
Copy

For example, in the below code we have taken a backup for configurations of NiFi, Tez, and Spark3:

Bash
Copy

After the upgrade, to restore NIFI configurations, the following command was run in mysql:

Bash
Copy

Create Database and Store Configs (FYI)

  1. Run the following command before upgrade:
Bash
Copy
  1. On completion of the upgrade, to restore the configurations, run the following code:
Bash
Copy

Example for service-name: NIFI with latest-config-version-before-upgrade:4

Bash
Copy

Stop and Delete Mpack Managed Services

Stop all the Mpack managed services and delete it from Ambari.

After deleting the Mpack managed services, uninstall the Mpacks.

Uninstall Mpacks

Run the following commands to uninstall Mpacks.

Bash
Copy

Restart Ambari Server

Bash
Copy

For additional validation, perform the following steps to ensure the packages have been completely uninstalled from the local server.

Remove Mpack Service Packages Installed on Servers

Remove Impala

Follow the steps below to remove and uninstall packages locally from the server without affecting dependent packages. Repeat these steps for all mpack-based services:

For example, remove Impala on RHEL.

  1. Run the following command to list the Impala binaries installed on the server.
Bash
Copy
  1. Remove the listed installed packages without removing the dependencies.
Bash
Copy
  1. Run the following command to validate the same.
Bash
Copy
  1. Perform the above steps for all the mpack based installed services on their respective servers.

Service Checks

Ensure that you run service checks for all the installed stack services by performing the following steps in the UI:

  1. Navigate to Actions > Service Check.

For example, here's how to perform a service check for HDFS. Remember to perform this check for all the installed services in your stack.

Common Steps to Perform Before the Upgrade

  1. Ensure that you have successfully run service checks for all the services and uninstalled any existing mpacks before proceeding with the upgrade. If you face any service check issue kindly look at troubleshooting steps mentioned at the end of the document.
  2. (For reference before the upgrade, check Ambari warnings.) The following warning may appear if you have mpacks installed and linked to your stack (e.g., SPARK3). Ensure that they are properly addressed or removed before proceeding with the upgrade, and only proceed once you are certain that the warnings are unnecessary or will not impact the upgrade.

Sample Exception

Bash
Copy
  1. Navigate to the Stack and Version page and click UPGRADE for the newly added stack.

Troubleshooting Steps for Service Checks

Follow these troubleshooting steps for the listed services below:

Zookeeper Service

Grant permission to zookeeper.log

Bash
Copy

Kafka Service

Modify the file at location /usr/odp/3.3.6.1-1/kafka/bin/kafka-run-class.sh with content mentioned here.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated