Professional Documents
Culture Documents
Prerequisites:
1. Ensure all services are up & running in the Cluster without any issues
2. Run each Service Check (found under the Service Actions menu) and confirm they execute
successfully.
3. Clear all alerts, or understand why they are being generated. Remediate as necessary.
4. Get all custom jars from all tools like Sqoop, Pig & Hive from /var/lib/ to not to fail jobs after
upgrade.
5. Make a note of any nodes to bring down/bring up before upgrade if possible.
6. Make sure enough space under RPM directory for new HDP RPMS.
1. Send Communication mail to all developers & business users about downtime window.
2. Perform checkpoint before starting Cluster upgrades.
3. Run FSCK
clush -g all -b "sudo mkdir /var/www/html/upgrade_backups"
clush -g all -b "sudo chmod 777 /var/www/html/upgrade_backups"
6. Take screenshot for Ambari, NameNode, Hive, Yarn, etc., for future reference
7. Don’t execute this at this time. Stop cluster services. (Note: If you are doing rolling upgrade,
no need to stop cluster services)
8. Backup all MySQL databases (Hive Metastore, Oozie, etc..)
sudo mysqldump -h ham.hadoop.com -u root -pwelcome1 --all-databases --add-drop-
database --add-drop-table > /var/www/html/upgrade_backups/ambari-mysql-backup.sql
Copy Hortonworks new version RPMs to /var/www/html directory and extract them.
cd /var/www/html/hortonworks-2.6.2.0
sudo tar -zxvf ambari-2.5.2.0-centos7.tar.gz -C /var/www/html/hortonworks-2.6.2.0/
sudo tar -zxvf HDP-2.6.2.0-centos7-rpm.tar.gz -C /var/www/html/hortonworks-2.6.2.0/
sudo mkdir -p /var/www/html/hortonworks-2.6.2.0/HDP-UTILS
sudo tar -zxvf HDP-UTILS-1.1.0.21-centos7.tar.gz -C /var/www/html/hortonworks-2.6.2.0/HDP-UTILS
sudo rm -rf /var/www/html/hortonworks-2.6.2.0/*.tar.gz
sudo chown -R root:root /var/www/html/hortonworks-2.6.2.0
[HDP-UTILS-1.1.0.21]
name=HDP Utils Version - HDP-UTILS-1.1.0.21
baseurl=http://192.168.56.121/hortonworks-2.6.2.0/HDP-UTILS/
gpgcheck=1
gpgkey=http://192.168.56.121/hortonworks-2.6.2.0/HDP-UTILS/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
Upgrade Ambari UI
Upgrading ambari-server
Updating properties in ambari.properties ...
Ambari Server configured for MySQL. Confirm you have made a backup of the Ambari Server
database [y/n] (y)? y
http://192.168.56.111:7180
username: admin
password: admin
Click on Save