Acceldata
ODP

Upgrade Ambari Server

Info

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

  1. Stop Management Pack Services: Use the Ambari UI to stop service: Spark3.
  2. Stop Infra-Solr Service: Navigate to Ambari > Infra Solr > Actions > Stop.
  3. Backup Management Pack Configurations: Follow the Prerequisites documentation for backing up configurations.
  4. Database Backup: Backup all stack databases.

Sample Database Backup:

mkdir /tmp/backup/
mysqldump -u <your_username> -p<your_password> ambari > /tmp/backup/ambari_backup.sql
mysqldump -u <your_username> -p<your_password> hive > /tmp/backup/hive_backup.sql
mysqldump -u <your_username> -p<your_password> ranger > /tmp/backup/ranger_backup.sql
mysqldump -u <your_username> -p<your_password> rangerkms > /tmp/backup/rangerkms_backup.sql
mysqldump -u <your_username> -p<your_password> oozie > /tmp/backup/oozie_backup.sql
If there are any other management pack databases, back them up at this step as well.
  1. Remove Management Pack Services: Delete Mpack services using Ambari UI.
  2. Uninstall Management Packs: Follow instructions provided here to remove management packs.
  3. Stop Ambari Server and Ambari Agents:
ambari-server stop
ambari-agent stop
Stop the Ambari Agents on all nodes in the cluster.
  1. Backup Ambari Server Configuration:
cp -r /etc/ambari-server/conf /etc/ambari-server/conf_backup
  1. Erase Ambari Server:

For RHEL:

yum erase ambari-server -y
For Ubuntu:
apt remove ambari-server -y
  1. Update Repository Files: Update ambari.repo (RedHat) or ambari.list (Ubuntu).
  2. Install Updated Ambari Server:

For RHEL:

yum clean all
yum install ambari-server -y
For Ubuntu:
apt clean
apt install ambari-server -y
  1. Restore Configuration Files: Copy ambari.properties and password.dat to /etc/ambari-server/conf/.
  2. Upgrade Ambari Server Database Schema:
ambari-server upgrade
  1. Start Ambari Server:
ambari-server start
  1. Access Ambari UI: Use your browser to access the UI.
  2. Install Required Mpacks: Follow documentation for installing mpacks and restoring configurations.