Upgrading Python

Learn how to migrate Python for different combinations of Cloudera Manager and Cloudera Runtime on the supported operating systems.

Migrating Python versions when using Cloudera Manager 7.13.1 CHF4 (7.13.1.400) with Cloudera Runtime 7.1.9 SP1 CHF9

Migrating from Python 3.8 or Python 3.9 to Python 3.11 on supported operating systems
(Recommended) Installing Python 3.11 before upgrading Cloudera Manager to 7.13.1 CHF4 (7.13.1.400)

This is the recommended workflow for customers upgrading Cloudera Manager to 7.13.1 CHF4 (7.13.1.400) version.

  1. Install Python 3.11 from the standard repository. For information about installing Python 3.11 on on supported operating systems, see Installing Python 3.11 standard package on supported operating systems.
  2. Upgrade Cloudera Manager to 7.13.1 CHF4 version. For information about upgrading Cloudera Manager, see Upgrading Cloudera Manager 7.
  3. Upgrade Cloudera Runtime to 7.1.9 SP1 CHF9 version. For information about upgrading Cloudera Runtime Cluster, see Upgrading a Cloudera Runtime Cluster.
Migrating from Python 3.8 to Python 3.9 on RHEL 8, Oracle Linux 8, Rocky Linux 8
(Recommended) Installing Python 3.9 before upgrading Cloudera Manager to 7.13.1 CHF4 (7.13.1.400)

This is the recommended workflow for customers upgrading Cloudera Manager to 7.13.1 CHF4 (7.13.1.400) version on RHEL 8, Oracle Linux 8, Rocky Linux 8.

  1. Install Python 3.9 from the standard repository. For information about installing Python 3.9 on on supported operating systems, see Installing Python 3.9 standard package on RHEL 8.
  2. Upgrade Cloudera Manager to 7.13.1 CHF4 version. For information about upgrading Cloudera Manager, see Upgrading Cloudera Manager 7.
  3. Upgrade Cloudera Runtime to 7.1.9 SP1 CHF9 version. For information about upgrading Cloudera Runtime Cluster, see Upgrading a Cloudera Runtime Cluster.

Migrating from Python 3.8 to Python 3.9 on RHEL 8.8 or RHEl 8.10

Cloudera recommends you to install Python 3.9 before upgrading Cloudera Manager to 7.13.1 version to ensure smooth transition with minimal downtime.
(Recommended) Installing Python 3.9 on RHEL 8 before upgrading Cloudera Manager to 7.13.1 and Cloudera Runtime to 7.3.1
Learn how to migrate Cloudera Manager and Cloudera Runtime from Python 3.8 to Python 3.9 on RHEL 8.8 or RHEl 8.10. This is the recommended workflow for customers upgrading Cloudera Manager to 7.13.1 version and Cloudera Runtime to 7.3.1 version since the minimum recommended version of Python is now 3.9.
  1. Install Python 3.9 from standard repository. For information about installing Python 3.9 on RHEL 8, see Installing Python 3.9 standard package on RHEL 8.
  2. Upgrade Cloudera Manager to 7.13.1 version. For information about upgrading Cloudera Manager, see Upgrading Cloudera Manager 7.
  3. Upgrade Cloudera Runtime to 7.3.1 version. For information about upgrading Cloudera Runtime Cluster, see Upgrading a Cloudera Runtime Cluster.
  4. Optional: Uninstall Python 3.8. To uninstall Python 3.8 run the following command:
    yum remove python38
(Not Recommended) Installing Python 3.9 on RHEL 8 after upgrading Cloudera Manager to 7.13.1 and Cloudera Runtime to 7.3.1
Learn how to upgrade Cloudera Manager and Cloudera Runtime while delaying the upgrade of Python from 3.8 to 3.9 version on RHEL 8.8 or RHEL 8.10. This is not a recommended workflow due to Hue supports only Python 3.9 in Cloudera Runtime 7.3.1.
  1. Upgrade Cloudera Manager to 7.13.1 version. For information about upgrading Cloudera Manager, see Upgrading Cloudera Manager 7.
  2. Upgrade Cloudera Runtime to 7.3.1 version. For information about upgrading Cloudera Runtime Cluster, see Upgrading a Cloudera Runtime Cluster.
  3. Install Python 3.9 from standard repository. For information about installing Python 3.9 on RHEL 8, see Installing Python 3.9 standard package on RHEL 8.
  4. Restart Cloudera Manager Agents. For information about restarting Cloudera Manager Agents, see Starting, Stopping, and Restarting Cloudera Manager Agents.

    After restarting Cloudera Manager Agents, Cloudera Manager Agent will pick up the highest Python version available between Python 3.8 and Python 3.9.

  5. Restart all Cloudera Runtime services so that they will pick up the Python 3.9 version. To restart all Cloudera Runtime services, restart the cluster. For information about restarting a cluster, see Restarting a Cluster.
  6. Optional: Uninstall Python 3.8. To uninstall Python 3.8 run the following command:
    yum remove python38

When Cloudera Manager is upgraded to 7.13.1 version and when Cloudera Runtime is either 7.1.8, 7.1.7 SP3 or 7.1.9 for RHEL 8, all the Cloudera Runtime process will continue to use Python 3.8, whereas Cloudera Manager Agent will pick up the highest Python version available between Python 3.8 and Python 3.9.

Cloudera Manager 7.13.1

Using Python 3 with the Cloudera Manager Agents

You must install Python 3 on all hosts before upgrading to Cloudera Manager 7.13.1. See Installing Python 3.

Cloudera Manager 7.11.3

Using Python 3 with the Cloudera Manager Agents

You must install Python 3 on all hosts before upgrading to Cloudera Manager 7.11.3. See Installing Python 3.

Cloudera Manager 7.7.3

Using Python 3.8 with the Cloudera Manager Agents

If you require Python 3.8 to be used on your cluster hosts, you must install Python 3.8 before you upgrade Cloudera Manager. See Installing Python 3.8 for Cloudera Manager 7.7.3