Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
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 navigating to Ambari > Infra Solr > Actions > Stop.

Stop Ambari Server and Agents
Stop the Ambari server and agents by running the following command.
Warning Stop the Ambari Agents on all nodes in the cluster.
Configuration Backup
Take a backup of the Ambari-server configs.
Back up Ambari Database
Erase the Ambari Server
For RHEL:
For Ubuntu:
Add Ambari Repo on Cluster Nodes
Back up the Old Ambari Repository
For RHEL:
For Ubuntu:
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:
For Ubuntu:
List the New Packages
Verify the latest Ambari package for the version - 2.7.9.2-1.
For RHEL:
For Ubuntu 20:
Install the Updated Ambari Packages
For RHEL:
For Ubuntu:
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:
For Ubuntu:
Ensure not to remove the jdk8 packages at this state.
Set up Python 3.11
Make sure to install and update the default Python version as 3.11 on all the cluster nodes.
Update JSVC
Make sure to Instal the latest version of the bigtop-jsvc-1.2.4 on all the cluster nodes.
For RHEL:
For Ubuntu:
Restore Config Files
Restore the ambari.properties and password.dat files, which are backed up at this step: Configuration Backup on this page.
Restore the ambari.properties file
Please override the file by prompting 'y'.
Restore the password.dat file
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
Upgrade the Ambari Server Database Schema
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.
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:
Workaround:
If still hitting the distro module not found error, follow the below steps:
Step 1:
Download the
get-pip.pyscript:
Install
pipfor Python 3.11:
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:
Step 3: Verify the installation.
After installing the distro module, verify that it’s correctly installed:
The ambari-server upgrade -v upgrade is successfully done.
Mpacks uninstallation not done
Workaround: Uninstall all the ambari-mpacks.