Upgrade Ambari Server
The following steps have to performed on the installed Ambari Server node.
- Stop Management Pack Services: Use the Ambari UI to stop service: Spark3.
- Stop Infra-Solr Service: Navigate to Ambari > Infra Solr > Actions > Stop.
- Backup Management Pack Configurations: Follow the Prerequisites documentation for backing up configurations.
- 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.
- Remove Management Pack Services: Delete Mpack services using Ambari UI.
- Uninstall Management Packs: Follow instructions provided here to remove management packs.
- Stop Ambari Server and Ambari Agents:
ambari-server stop
ambari-agent stop
- Backup Ambari Server Configuration:
cp -r /etc/ambari-server/conf /etc/ambari-server/conf_backup
- Erase Ambari Server:
For RHEL:
yum erase ambari-server -y
For Ubuntu:
apt remove ambari-server -y
- Update Repository Files: Update ambari.repo (RedHat) or ambari.list (Ubuntu).
- Install Updated Ambari Server:
For RHEL:
yum clean all
yum install ambari-server -y
For Ubuntu:
apt clean
apt install ambari-server -y
- Restore Configuration Files: Copy
ambari.properties
andpassword.dat
to/etc/ambari-server/conf/
. - Upgrade Ambari Server Database Schema:
ambari-server upgrade
- Start Ambari Server:
ambari-server start
- Access Ambari UI: Use your browser to access the UI.
- Install Required Mpacks: Follow documentation for installing mpacks and restoring configurations.
Was this page helpful?