Community Articles

Find and share helpful community-sourced technical articles.
Labels (1)
avatar
Community Manager

This video describes how to upgrade Ambari 2.6.2.2 to Ambari 2.7.3.

 

Open the video on YouTube here

 

Apache Ambari 2.7.3 is the latest among Ambari 2.7.x releases. Ambari 2.7.0, which was the first release in the 2.7.x series introduced significant improvements from its predecessor - Ambari 2.6.2. This video will help users upgrade from Ambari 2.6.2.2 to Ambari 2.7.3.

Procedure

I. Prerequisites

  1. Take a backup of the Ambari configuration file:
    # mkdir /root/backups
    # cp /etc/ambari-server/conf/ambari.properties /root/backups
  2. Turn off Service Auto Restart: 
    From Ambari UI: Admin > Service Auto Start. Set Auto Start Services to Disabled. Click Save.
  3. Run Service Checks on all Ambari services.
  4. On each of the Ambari services installed on the cluster, run Service Checks as the following: 
    From Ambari UI: <Service_Name> > Service Actions > Run Service Check
    8068_1.png
    For example: HDFS > Service Actions > Run Service Check.
  5. Start and Stop all of the Ambari services from Ambari UI.

II. Stop Services

  1. If SmartSense is deployed, stop it and turn on Maintenance Mode. From Ambari Web, browse to Services > SmartSense and select Stop from the Service Actions menu. Then, select Turn on Maintenance Mode from the Service Actions menu.
  2.  If Ambari Metrics is deployed, stop it and turn on Maintenance Mode. From Ambari Web, browse to Services > Log Search and select Stop from the Service Actions menu. Then, select Turn on Maintenance Mode from the Service Actions menu.
  3. If Log Search is run in the cluster, stop the service. From Ambari Web, browse to Services > Log Search and select Stop from the Service Actions menu. Then, select Turn on Maintenance Mode from the Service Actions menu.
  4. Stop Ambari server:
    # ambari-server stop
  5. Stop Ambari agents:
    # ambari-agent stop
  6. Backup Ambari database:
    # mysqldump -u ambari -p ambari > /root/backups/ambari-before-upgrade.sql

III. Download Ambari 2.7.3 repository

1. Replace the old Ambari repository with the latest on on all hosts in the cluster

# wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

2. Upgrade Ambari server

# yum clean all
# yum upgrade ambari-server

Note: If HDF components is deployed in the HDP setup, upgrade the HDF Management Pack before upgrading the Database Schema in step IV. For more details see HDF Upgrade the HDF Management Pack
3. Upgrade Ambari agents

# yum clean all
# yum upgrade ambari-agent

IV. Upgrade Database Schema

  1. On the Ambari server host, upgrade the Ambari database schema:
    # ambari-server upgrade
  2. Start Ambari server:
    # ambari-server start
  3. Start Ambari agents:
    # ambari-agent start

V. Verify Ambari version

  1. From the Ambari UI: Go to Admin > About: 

8068_2.png

800 Views
0 Kudos