Ambari Server Upgrade

You can perform the following steps to upgrade the Ambari Server.

The following steps have to be performed on the installed Ambari Server node.

Stop Infra-Solr Service

Stop the Infra-solr Service from the Ambari UI by navigate to Ambari > Infra Solr > Actions > Stop.

Stop Ambari Server and Agents

Stop the Ambari server and agents by running the following command.

Bash
Copy

Warning Stop the Ambari Agents on all nodes in the cluster.

Configuration Backup

Take a backup of the Ambari-server configs.

Bash
Copy

Back up Ambari Database

Bash
Copy

Erase the Ambari Server

For RHEL:

Bash
Copy

For Ubuntu:

Bash
Copy

Add Ambari Repo on Cluster Nodes

Back up the Old Ambari Repository

For RHEL:

Bash
Copy

For Ubuntu:

Bash
Copy

Update the Repository Files

Retrieve the latest Ambari repository details from Ambari Repositories and add it to all the cluster nodes.

Update ambari.repo (RedHat) or ambari.list (Ubuntu).

For RHEL:

Bash
Copy
Bash
Copy

For Ubuntu:

Bash
Copy
Bash
Copy

List the New Packages

Verify the latest Ambari package for the version - 2.7.9.2-1.

For RHEL:

Bash
Copy

For Ubuntu 20:

Bash
Copy

Install the Updated Ambari Packages

For RHEL:

Bash
Copy

For Ubuntu:

Bash
Copy

Restore the Configuration Files

Copy ambari.properties and password.dat to /etc/ambari-server/conf/.

Once the installation is successful, make sure to set up the following versions.

Set up Java 11

Make sure to install and update the default Java version as 11 on all the cluster nodes.

For RHEL:

Bash
Copy

For Ubuntu:

Bash
Copy

Ensure not to remove the jdk8 packages at this state.

Bash
Copy

Set up Python 3.11

Bash
Copy

Make sure to install and update the default Python version as 3.11 on all the cluster nodes.

Bash
Copy

Update JSVC

Make sure to Instal the latest version of the bigtop-jsvc-1.2.4 on all the cluster nodes.

For RHEL:

Bash
Copy

For Ubuntu:

Bash
Copy

Restore Config Files

Restore the ambari.properties and password.dat files, which are backed-up at this step: Configuration Backup#configuration-backup.

Restore ambari.properties file

Bash
Copy

Please override the file by prompting 'y'.

Restore password.dat file

Bash
Copy

Update the java.home and Stack.java.home

In this case, set JAVA_HOME to /usr/lib/jvm/java-11-openjdk

File path - /etc/ambari-server/conf/ambari.properties | grep -i java.home

Bash
Copy

Upgrade the Ambari Server Database Schema

Bash
Copy

Upon running the command, the response will be as shown in the screenshot.

Make sure to take the database backup as mentioned earlier and enter 'y' here.

Start the Ambari Server

Once started, you are able to access the Ambari UI using the same url as it was earlier.

Bash
Copy

Access the Ambari UI

Use your browser to access the Ambari UI.

Check the Upgraded Version

To verify the upgraded Ambari version, navigate to Admin → About in the top-right corner of the Ambari UI.

All the services also must be working normally without any downtime.

Install Mpacks and Restoring Configurations

Follow the steps on the Guide for Management Packs page for installing mpacks and restoring configurations.

Known Issues

Pip dependency missing

Error:

Bash
Copy

Workaround:

Bash
Copy

If still hitting the distro module not found error, follow the below steps:

Step 1:

  1. Download the get-pip.py script:
Bash
Copy
  1. Install pip for Python 3.11:
Bash
Copy

Step 2: Install the distro module using pip3.11

Once `pip` is installed for Python 3.11, you can now use it to install the missing `distro` module:

Bash
Copy

Step 3: Verify the installation.

After installing the distro module, verify that it’s correctly installed:

Bash
Copy

The ambari-server upgrade -v upgrade is successfully done.

Mpacks uninstallation not done

Bash
Copy

Workaround: Uninstall all the ambari-mpacks.

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard