Downgrade Instructions

If you have upgraded ODP from version 3.2.3.3-3 (with Ambari 2.7.8.2-3) to version 3.3.6.2-1 (with Ambari 2.7.8.2-1) and need to roll back to ODP 3.2.3.3-3 (with Ambari 2.7.8.2-3), follow the steps below.

Steps to Downgrade

In this case the downgrade was tested right before the finalized.

Click on the downgrade and proceed further.

Before restoring backups, pause the downgrade process.

Pause Downgrade Before Restoring Backups

Proceed with the Ambari downgrade.

Ambari Downgrade

  1. Fetch the current Ambari version.
Bash
Copy

Response:

Bash
Copy
  1. Stop Ambari Server and Agents.
Bash
Copy

Response:

Bash
Copy
Bash
Copy

Response:

Bash
Copy
  1. Restore the older Ambari packages.

Set up the old Ambari repositories.

Bash
Copy

Since we are downgrading the Ambari server to 2.7.8.2-301, please restore the repo URLs.

For Ubuntu 20:

cat /etc/apt/sources.list.d/ambari.list

Bash
Copy

For rhel8/rhel9:

cat /etc/yum.repos.d/ambari.repo

Bash
Copy

Remove previously installed Ambari packages.

On Ubuntu20 environments:

Bash
Copy

On rhel8/rhel9 environments:

Bash
Copy

Install the required packages for Ambari downgrade.

Bash
Copy

Reinstall Ambari Server to version 2.7.8.2-1 from 2.7.9.2-1.

Bash
Copy

Restore Ambari configurations:

Bash
Copy

Make sure that you do not restore the Ambari database.

Reset the Version

Reset the version using the below command.

Bash
Copy

Reset Java Version to 1.8

From ambari.properties, reset java.home to 1.8.

Bash
Copy

Host level

On the host level, set the node’s default Java version to 1.8.

Bash
Copy
Bash
Copy

Start Ambari Server and Agents

Ambari Server

Bash
Copy
Bash
Copy

Agent

Bash
Copy
Bash
Copy

Reset Configuration Version

Reset the ODP stack configurations to the previous version (before the upgrade).

Once reset the older configs, resume the Downgrade:

Example:

for example, for HDFS config version:

Please reset the config version to all services.

Resume Downgrade

Restore Backups

Log in to the backend MySQL database and restore the backed-up SQL files.

Bash
Copy

Proceed with the remaining downgrade steps.

Known Limitations

Issue: HDFS NameNode failed to start with error:

2025-08-16 18:13:11,103 INFO util.ExitUtil (ExitUtil.java:terminate(241)) - Exiting with status 1: java.io.IOException: File system image contains an old layout version -65. An upgrade to version -66 is required.

Resolution:

  1. At restored hdfs namenode’s layoutVersion, set as -66
Bash
Copy

Response:

Bash
Copy
  1. Set layoutVersion -66 followed by restart the HDFS.
Bash
Copy

Retry the HDFS restart from Downgrade page, proceed further.

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