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.sqlmysqldump -u <your_username> -p<your_password> hive > /tmp/backup/hive_backup.sqlmysqldump -u <your_username> -p<your_password> ranger > /tmp/backup/ranger_backup.sqlmysqldump -u <your_username> -p<your_password> rangerkms > /tmp/backup/rangerkms_backup.sqlmysqldump -u <your_username> -p<your_password> oozie > /tmp/backup/oozie_backup.sqlIf 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 stopambari-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 -yFor 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 allyum install ambari-server -yFor Ubuntu:
apt cleanapt install ambari-server -y- Restore Configuration Files: Copy
ambari.propertiesandpassword.datto/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?