Acceldata Open Source Data Platform
ODP 3.2.3.2-2
Release Notes
What is ODP
Installation
Configuration and Management
Upgrade
USER GUIDES
Security
Uninstall ODP
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Apache Airflow Mpack Installation (Python3.11 & RHEL8 with Postgres15)
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
To install Apache Airflow management pack (mpack) for Python3.11 and RHEL8 with Postgres15, perform the following steps:
- Install Python3.11 and create symlinks:
Bash
sudo ln -sf /usr/bin/python3.11 /usr/bin/python3sudo ln -sf /usr/bin/pip3.11 /usr/bin/pip3- Install and setup Postgres15:
SQL
sudo -u postgres psqlCREATE DATABASE airflow;CREATE USER airflow WITH PASSWORD 'airflow';ALTER ROLE airflow SET client_encoding TO 'utf8';ALTER ROLE airflow SET default_transaction_isolation TO 'read committed';ALTER ROLE airflow SET timezone TO 'UTC';GRANT ALL PRIVILEGES ON DATABASE airflow TO airflow;\c airflowGRANT ALL ON SCHEMA public TO airflow;\q- Update PostgreSQL configuration files:
- Edit
/var/lib/pgsql/15/data/postgresql.conf:
Bash
vi /var/lib/pgsql/15/data/postgresql.conf- Uncomment the following lines:
Bash
listen_addresses = '*'port = 5432- Edit
/var/lib/pgsql/15/data/pg_hba.conf:
Bash
vi /var/lib/pgsql/15/data/pg_hba.conf- Add the following line:
Bash
host airflow airflow 37.27.118.52/32 md5- Restart PostgreSQL:
Bash
sudo systemctl restart postgresql-15- Install
google-re2package andpsycopg2-binary:
Bash
pip3 install psycopg2-binarypip3 install google-re2If 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
pip3 download google-re2Ensure that you have set up the repository for Airflow before proceeding with the Airflow service installation through Ambari.
- Install Mpack:
Bash
ambari-server install-mpack --mpack=ambari-mpacks-airflow-2.8.1.tar.gz --verbose- Refer to the screenshots below for guidance on installing the service via Ambari UI:





- Follow the Airflow configurations steps provided in the Apache Airflow Installation using Mpack on Ambari guide.



- 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 on May 17, 2024
Was this page helpful?
Next to read:
Schema RegistryDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message