
PreRequisite
Python version should be above 3.6
Steps for Installation
- check for python3 version in the terminal
python3 --version
- Version should be above 3.6
- Create new folder –
mkdir apache-airflow cd apache-airflow- Create the python environment
python3 -m venv py_env- Activate the python environment
- command –
source py_env/bin/activate - Install Apache airflow from github from https://github.com/apache/airflow
- copy the install command and paste in your terminal
pip install 'apache-airflow==2.8.0' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.8.0/constraints-3.8.txt"- Create sqllite database
airflow db initto initialize db for airflow- Start airflow webserver
airflow webserver -p 8080 - check localhost to see the UI of airflow
- Use
airflow users createand provide th details to create user to login - In other terminal, going the same folder start the scheduler
airflow scheduler
Leave a comment