Prerequisites for Upgrade

This page explains how to back up the database, increase the NameNode timeout value, prepare for an upgrade, and view unsupported components.

Increase the NameNode Timeout Value

To ensure that Ambari requests to start the NameNode and does not timeout during an upgrade, you must configure the Ambari NameNode restart timeout parameter using upgrade.parameter.nn-restart.timeout in the /etc/ambari-server/conf/ambari.properties file on the Ambari Server host.

You may need to add the restart timeout parameter and value to the Ambari server host following a default installation. For a large cluster, you must add 50% to the usual time (in seconds) that is required to restart the NameNode.

For example, on the Ambari server, observe the time (in seconds) required to restart the active NameNode. If the time taken to restart the active NameNode is more than 10 minutes (600 seconds) and the cluster is large, then add the following parameter to the /etc/ambari-server/conf/ambari.properties file on the Ambari Server host.

Bash
Copy

After adding or resetting the Ambari NameNode restart parameter, restart the Ambari server before upgrading it to a newer version using the below command.

Bash
Copy

Unsupported components

if the existing cluster has spark2 service running, remove the service as its not supported in 3.3.6.x lines.

If Spark2 cannot be deleted and displays the following error, follow these steps to resolve the issue.

Prepare for Upgrade

Follow these steps to prepare your cluster for the upgrade:

  1. Clone or download the repository on the Ambari Server node.
Bash
Copy
  1. Navigate to the upgrade directory.
Bash
Copy
  1. Run the upgrade preparation script.
Bash
Copy
  1. Restart Ambari Server.
Bash
Copy

Backup Backend Databases

Before starting the stack upgrade, back up all backend databases for the services in your cluster. This backup ensures that you can restore service configurations and metadata if the upgrade fails or unexpected issues occur.

In this scenario, the backend database is MySQL. These steps have been tested with a MySQL backend database.

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