Apache Airflow Mpack Installation (Python3.11 & RHEL8 with Postgres15)

To install Apache Airflow management pack (mpack) for Python3.11 and RHEL8 with Postgres15, perform the following steps:

  1. Install Python3.11 and create symlinks:
Bash
Copy
  1. Install and setup Postgres15:
SQL
Copy
  1. Update PostgreSQL configuration files:
  • Edit /var/lib/pgsql/15/data/postgresql.conf:
Bash
Copy
  • Uncomment the following lines:
Bash
Copy
  • Edit /var/lib/pgsql/15/data/pg_hba.conf:
Bash
Copy
  • Add the following line:
Bash
Copy
  1. Restart PostgreSQL:
Bash
Copy
  1. Install google-re2 package and psycopg2-binary:
Bash
Copy

If the package is not installed, download it and then install it. After running the below command, you will get a wheel package like google_re2-1.1.20240501-1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Bash
Copy

Ensure that you have set up the repository for Airflow before proceeding with the Airflow service installation through Ambari.

  • Install Mpack:
Bash
Copy
  • Refer to the screenshots below for guidance on installing the service via Ambari UI:
  • Access the Airflow UI using your Airflow credentials, in this case we are using 'airflow' as the username and password.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated