Upgrade Prerequisites

Do not proceed for an upgrade without Ambari Upgrade. For more information, see .

After upgrading to the latest version of Ambari, proceed with both express and rolling upgrades. Perform the following:

  1. (Mandatory for Rolling Upgrade) Ensure that HA (High Availability) is enabled for HDFS. Optionally, you can also enable HA for YARN.
  2. (Mandatory) To preserve the configurations of any service, including management packs (mpacks), you can use the following process, which provides two ways to store the configuration settings.

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

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.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated