Upgrade Ambari Server

Follow the steps below to upgrade the Ambari server.

Stop Infra-solr Service

Stop the Infra-solr Service from Ambari-UI.

Stop Ambari Server and Agents

Stop Ambari Server

Take the backup of ambari-server configs.

/etc/ambari-serfver/conf/

Bash
Copy

Stop Agents

Stop Ambari-agent on every cluster node.

Bash
Copy

Back up Ambari Database

Take the Ambari-server backend database backup from the server host.

DB Backup Commands

Bash
Copy

The upgraded version Ambari-2.7.8.4-3 supports only Python 3. Please ensure Python 3 is installed and configured on all cluster nodes before proceeding with the upgrade.

Verify the Python Version

Bash
Copy

Response: Python 3.x.x.

Add Ambari Repo on Cluster Nodes

Back up the Old Ambari Repository

Bash
Copy

Retrieve the latest Ambari repository details from Accessing Acceldata Repositories and add it to all cluster nodes.

List the existing Ambari packages

On RHEL

Bash
Copy

On Ubuntu

Bash
Copy

Example Output (if the current Ambari version is 2.7.6.0-1):

Bash
Copy

Remove the Existing Ambari Packages

  • On the Ambari Server node, remove the installed packages before upgrading:

On RHEL:

Bash
Copy

On Ubuntu:

Bash
Copy
  • On the Ambari agents node, remove the installed packages before upgrading:

On RHEL:

Bash
Copy

On Ubuntu:

Bash
Copy
  • On the Ambariinfra-solrnode, remove the installed packages before upgrading:

On RHEL:

Bash
Copy

On Ubuntu:

Bash
Copy

Note

  • Adjust the package names based on the installed versions on each node.
  • You can verify installed packages before removal using:

On RHEL

Bash
Copy

On Ubuntu

Bash
Copy

Make sure the Amabri packages are not installed.

Install Ambari packages

Install the latest Ambari-server only on ambari-server node.

Ambari Server Node

For RHEL:

Bash
Copy

For Ubuntu:

Bash
Copy

Ambari Agent Node

For RHEL:

Bash
Copy

For Ubuntu:

Bash
Copy

Infra-solr Nodes

For RHEL:

Bash
Copy

For Ubuntu:

Bash
Copy

Ambari Server Configuration Files Restore

Restore the configuration files backed up at step 4 (Backup Taken in step 4).

Restore ambari.propertoies File

Bash
Copy

When prompted, enter 'y' to confirm.

Bash
Copy

Restore passwd.dat File

Bash
Copy

Java and JSVC upgrade

Set up Java 11 on all nodes

Bash
Copy

Install JSVC

Bash
Copy

Ambari Server Schema Upgrade

Before upgrading, ensure a database backup has been taken (as mentioned in Step 6).

Update ambari.properies

Bash
Copy

Add new properties in ambari.properties

In case of using Oracle 19C as Database, download ojdbc11.jar and update custom.oracle.jdbc.name in ambari.properties, also run:

cp ojdbc11.jar /var/lib/ambari-server/resources/

Run the Ambari Server upgrade command:

Bash
Copy

Response when prompted:

Bash
Copy

After the successful completion, you must see the following message.

Bash
Copy

Start Ambari Server

Bash
Copy

Start Ambari Agent

Bash
Copy

Once started, verify that the Ambari UI is accessible using the same URL as before.

Verify Ambari Version

Verify the upgraded Ambari version in admin->about on the top right corner in Ambari UI.

The Ambari version is upgraded successfully.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated