Install on Ubuntu
Table of Contents
Build Essentials
Install build essentials
Python
Ubuntu 20.04 default Python version is Python 3.8.x
.
Ubuntu 22.04 default Python version is Python 3.10.x
.
Ubuntu 23.10 default Python version is Python 3.11.x
.
PyPI
Install PyPI
Virtual Environment
Install Virtual Environment
Activate Virtual Environment
Deactivate Virtual Environment
Install Project needed Dependencies
PostgreSQL
The version installed here is PostgreSQL 16.2
.
Install PostgreSQL (Automatic)
Already included in the command make install
, just execute it.
Install PostgreSQL (Manual)
Configure PostgreSQL
Connect to PostgreSQL Database using default user postgres
.
Change password of default user postgres
to postgres
.
Create Database named airflow_db
.
List all databases.
Configure pgAdmin4
The email for pgAdmin4 is
admin@admin.com
.The password for pgAdmin4 is
postgres
.
Open browser, go to http://127.0.0.1/pgadmin4
. Click Add New Server
.
Filled below parameters.
Category | Form | Value |
---|---|---|
General | Name | Airflow |
Connection | Host name/address | localhost |
Port | 5432 | |
Maintenance database | airflow_db | |
Username | postgres | |
Password | postgres |
MinIO Object Storage for Linux
MinIO Server
The version installed here is latest
.
Install MinIO Server (Automatic)
Already included in the command make install
, just execute it.
Install MinIO Server (Manual)
Running MinIO Server
The username for WebUI default is
minioadmin
.The password for WebUI default is
minioadmin
.
MinIO Client
The version installed here is latest
.
Install MinIO Client (Automatic)
Already included in the command make install
, just execute it.
Install MinIO Client (Manual)
Configure MinIO Client
Notices: Please configure MinIO Client after executing MinIO Server.
The MinIO Server host default is
http://127.0.0.1:9000
.The access_key for MinIO Client API default is
minioadmin
.The secret_key for MinIO Client API default is
minioadmin
.
Airflow
The version installed here is Airflow 2.8.3
.
Install Airflow
Already installed via requirements.txt
.
Running Airflow
The username for WebUI default is
admin
.The password for WebUI can be seen in
standalone_password.txt
or in the terminal output log.
(Optional) Configure Airflow
Notices: Please configure Airflow after executing Airflow instance once.
Modify two parameters in the airflow.cfg
file.
load_templates
Set False if you don't load airflow default templates. Default is True.
Configure Airflow Database Connection
Notices: Please configure Airflow Database Connection after executing Airflow instance once.
Modify two parameters in the airflow.cfg
file.
sql_alchemy_conn
executor
After the modification is completed, save the file and restart the airflow instance.