Installing Python 3.8 on SLES 12 for Hue
You must install Python 3.8 on all hosts after installing Cloudera Manager and before adding the services to your cluster.
Install the necessary developer tools such as gcc
and
make
on your system.
Install the
openssl
package, and place its binaries in the
/lib/ directory. This is needed for installing the MySQL
client on MySQL and MariaDB databases.- Download the openssl package on the host on which you want to install the
Python 3.8 package and decompress the
file:
cd /opt wget https://www.openssl.org/source/openssl-1.0.2o.tar.gz
tar -xzf openssl-1.0.2o.tar.gz
- Change directory to
openssl-1.0.2o:
cd cd openssl-1.0.2o
- Run the following commands to build and compile the
files:
./config --shared make make install
- Copy the following files to the /lib/
directory:
cp libcrypto.so /lib/ cp libssl.so /lib/ cp libcrypto.a /lib/ cp libssl.a /lib/ cp libcrypto.pc /lib/ cp libssl.pc /lib/ cp openssl.pc /lib/
- Delete the
openssl-1.0.2o.tar.gz
file that you had downloaded:rm ./openssl-1.0.2o.tar.gz
- Configure openssl as
follows:
custom_openssl = " --with-openssl=/opt/openssl-1.0.2o" ./configure --enable-shared[***CUSTOM-OPENSSL***]
Install the following packages before installing Python 3.8:
- libffi-devel-gcc5
- libbz2-devel
- libzip2
- libffi-devel
- libz1
- zlib-devel
zypper install -y libffi-devel-gcc5 libbz2-devel libzip2 libffi-devel libz1 zlib-devel
- (For Hue) If you have installed Python 3.8 at a custom location, then you must
append the custom path in
Key: PATH
Value: [***CUSTOM-INSTALL-PATH***]:/usr/local/sbin:/usr/local/bin:/usr/sbin:
separated by colon (:) as follows and restart the Hue
service: - Clean up the compiled openssl artifacts by running the following commands:
rm /lib/libcrypto.so rm /lib/libssl.so rm /lib/libcrypto.a rm /lib/libssl.a rm /lib/libcrypto.pc rm /lib/libssl.pc rm /lib/openssl.pc