Installing standard Python 3.10 binary on SLES 15 SP5 at a standard or custom location
For CDP Runtime 7.1.9 SP1, Cloudera Manager agents and Hue require Python 3.10 on SLES 15 SP5. You must install Python 3.10 on all cluster hosts before installing Cloudera Manager and adding services to your cluster. Follow the instructions in this topic to manually download, build, and install standard Python 3.10 binary from source on SLES 15 SP5 to install Python at a standard or custom location.
To install Python 3.10 at a custom location, you must also replace [***CUSTOM-INSTALL-PATH***] in the instructions with the custom path.
- gcc
- make
- openssl-devel
- bzip2-devel
- libffi-devel
- zlib-devel
- libbz2-devel
- gzip
zypper install gcc openssl-devel bzip2-devel libffi-devel zlib-devel make libbz2-devel gzip
- Enable Cloudera Manager to use Python 3.10 installed in a custom location
-
If you have installed Python 3.10 at a custom location, then you must either create a symbolic link using the alternatives command or by adding an environment variable to the Cloudera Manager Agent in the systemd service definition files with the full path to the Python 3.10 custom-built binary.
To use the alternatives command, get help by running the command alternatives --help. You should create symbolic links from either /usr/bin/python3.10 or /usr/local/bin/python3.10 to [***CUSTOM-INSTALL-PATH***]/bin/python3.10 where you installed the Python 3.10 package.
To add an environment variable to the Cloudera Manager Agent in the systemd service definition files perform the following steps:- SSH into the host system on which you installed Python 3.10 as a root user.
- Open the /usr/lib/systemd/system/cloudera-scm-supervisord.service file for editing.
- Add the following line in the
cloudera-scm-supervisord.service file
under the [Service]
section:
Environment=”PYTHONBIN=[***CUSTOM-INSTALL-PATH***]/bin/python3.10”
- Open the /usr/lib/systemd/system/cloudera-scm-agent.service file for editing.
- Add the following line in the
cloudera-scm-agent.service file under
the [Service]
section:
Environment=”PYTHONBIN=[***CUSTOM-INSTALL-PATH***]/bin/python3.10”
- Enable Hue to use Python 3.10 installed in a custom location
- If you have installed Python 3.10 in a custom location and you did not
configure alternatives, then you must prepend the custom path to the custom
bin directory in
Key: PATH
Value: [***CUSTOM-INSTALL-PATH***]:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
separated by colon (:) as follows:
- Install the psycopg2-binary package
- Install the
psycopg2-binary
package after installing Python 3.10 for using PostgreSQL as a backend database for Hue.