Installing the psycopg2 Python package for PostgreSQL database on a FIPS cluster (RHEL 8)
If you use PostgreSQL as a backend database for Hue on a FIPS cluster, you must install a version of the psycopg2 package from the source to be at least 2.9.5 on all Hue hosts because the psycopg2-binary package uses its version of the libssl library file which does not support FIPS.
- Uninstall the preinstalled psycopg2 or psycopg2-binary packages.
- Download and install the PostgreSQL database using the following
commands:
dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm dnf install -y postgresql[***DATABASE-VERSION***]-server // if you omit the db_version it defaults to 12 yum install -y postgresql[***DATABASE-VERSION***]-devel
Replace [***DATABASE-VERSION***] with the actual database version you are want to insta;;. For example, 16.