Installing Python 3.8 on SLES 15 for Cloudera Manager 7.7.3
You must install Python 3.8 on all cluster hosts before installing Cloudera Manager and adding services to your cluster.
You can either install the standard Python 3.8 package prepackaged with the SLES 15 operating system or a custom Python 3.8 package in the default operating system location or in a custom location based on your organization's requirements. If you install Python 3.8 in a custom location, then you must point Cloudera Manager to that location either by creating a symbolic link or by adding an environment variable to the Cloudera Manager Agent systemd service definition file.
- SSH into the host system as a root user.
- Run the following command to install Python
3.8:
zypper install python3.8
- Verify the Python version as
follows:
python3.8 -–version
zypper install gcc openssl-devel bzip2-devel libffi-devel zlib-devel make libbz2-devel gzip
You may install the custom Python 3.8 package in the standard location, or if required
by your organization, in a custom location. Note that some commands are different
depending on this choice. If using a custom location, substitute the custom location
wherever you see [***CUSTOM-INSTALL-PATH**]
in the
instructions.
Perform the following steps on all cluster hosts:
- SSH into the host system as a root user.
- Download Python 3.8 and decompress the package by running the following
commands:
cd /opt curl -O https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz
tar -zxvf Python-3.8.12.tgz
- Change directory to where you decompressed the Python 3.8
package:
cd Python-3.8.12.tgz
- Run one of the following command to start installing Python 3.8:
- If you are installing to the standard location, run the following command
./configure --enable-shared
- If you are installing to a custom location, run the following
command:
./configure --enable-shared --prefix=[***CUSTOM-INSTALL-PATH***]
- If you are installing to the standard location, run the following command
- Build Python 3.8 as follows:
- Run the
make
command to compile the files:make
- Run the following command to place the compiled files in the default location or
in the custom location that you specified using the
--prefix
option:make altinstall
- Copy the shared compiled library files (libpython3.8.so) to the
/lib64/
directory:
Thecp --no-clobber ./libpython3.8.so* /lib64/
--no-clobber
option is used to prevent overwriting of files. - Change the permissions of the libpython3.8.so files as
follows:
chmod 755 /lib64/libpython3.8.so*
- Run the
- If you see the error while loading shared libraries:
libpython3.8.so.1.0: cannot open shared object file: No such file or
directory error, then run the following command:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/