Installing Python 3
Certain Cloudera services such as Cloudera Manager and Hue use Python 3.x. Installing Python 3.x is mandatory to deploy Cloudera Base on premises. Review the supported operating systems (OS) and use the corresponding instructions to install the recommended Python version.
Cloudera Manager 7.13.1 or higher versions does not work with Python 2.7. While using Cloudera Manager 7.13.1 or higher versions with Cloudera Runtime 7.1.8 or 7.1.9 version, you may remove all Python 2 versions from the operating system, only when the operating system allows you to remove the Python 2 version.
If you are running Cloudera Runtime 7.1.7 SP3 or below versions with Cloudera Manager 7.13.1, then Python 2.7 is still required for the Cloudera Runtime components. In this scenario, you must install both Python 2.7 (for Cloudera Runtime components) and Python 3 (for Cloudera Manager 7.13.1).
Cloudera Manager 7.13.1 CHF4 now supports a range of Python versions, including Python 3.8, Python 3.9, Python 3.10, and Python 3.11 when used in combination with Cloudera Runtime 7.1.9 SP1 CHF9 and higher versions.
The specific Python versions supported are dependent on your operating system. The Cloudera Manager Agent automatically selects the highest available Python version from the supported range of Python versions (Python 3.8 - Python 3.11) that is installed on the host after the Cloudera Manager Agent restart. This intelligent selection simplifies management by ensuring the Cloudera Manager Agents always use the most up-to-date compatible Python for the specific Operating System.
The tables in the following sections list the supported operating systems, the Python version that is distributed with those operating systems, and the Python 3 versions required for deploying Cloudera:
Python support matrix
- The following details are applicable only when using Cloudera Manager 7.13.1 CHF4 (7.13.1.400) with Cloudera Runtime 7.1.9 SP1 CHF9
-
Operating system Python version distributed with the OS Python version required for deploying Cloudera Installation required? RHEL 8.10 Python 3.6 Python 3.8 or Python 3.9 or Python 3.11 Yes RHEL 8.8 Python 3.6 Python 3.8 or Python 3.9 or Python 3.11 Yes RHEL 8.8 FIPS Python 3.6 Python 3.8 or Python 3.9 or Python 3.11 Yes RHEL 9.5 Python 3.9 Python 3.9 or Python 3.11 - Python 3.9: No
- Python 3.11: Yes
RHEL 9.4 Python 3.9 Python 3.9 or Python 3.11 - Python 3.9: No
- Python 3.11: Yes
RHEL 9.2 Python 3.9 Python 3.9 or Python 3.11 - Python 3.9: No
- Python 3.11: Yes
RHEL 9.1 Python 3.9 Python 3.9 or Python 3.11 - Python 3.9: No
- Python 3.11: Yes
Rocky Linux 9.4
Python 3.9 Python 3.9 or Python 3.11 - Python 3.9: No
- Python 3.11: Yes
SLES 15 SP4 Python 3.6 Python 3.11 Yes SLES 15 SP5 Python 3.6 Python 3.11 Yes Oracle 8.8 UEK Python 3.6 Python 3.8 or Python 3.9 or Python 3.11 Yes Ubuntu 22.04 Python 3.10 Python 3.11 Yes
- The following details are applicable only when using Cloudera Manager from version 7.13.1 to 7.13.1 CHF4 (7.13.1.400) with Cloudera Runtime 7.3.1.400 SP2 or lower versions:
-
Operating system Python version distributed with the OS Python version required for deploying Cloudera Installation required? RHEL 8.10 Python 3.6 Python 3.8 or Python 3.9 Yes RHEL 8.8 Python 3.6 Python 3.8 or Python 3.9 Yes RHEL 8.8 FIPS Python 3.6 Python 3.8 or Python 3.9 Yes RHEL 9.4 Python 3.9 Python 3.9 Yes RHEL 9.2 Python 3.9 Python 3.9 Yes RHEL 9.1 Python 3.9 Python 3.9 Yes For 7.3.1.200 SP1
Rocky Linux 9.4
Python 3.9 Python 3.9 No SLES 15 SP4 Python 3.6 Python 3.10 Yes SLES 15 SP5 Python 3.6 Python 3.10 Yes Oracle 8.8 UEK Python 3.6 Python 3.8 Yes Ubuntu 20.04 Python 3.8 Python 3.8 No Ubuntu 22.04 Python 3.10 Python 3.10 No
Difference between standard and custom Python packages
The term standard Python package in Cloudera documentation refers to the Python package that is distributed with the OS, or an unmodified Python binary that is compiled from the source. If you have made modifications or customizations to the Python source code and then compiled the binaries into a package, then that is referred to as the custom Python package.