export AIRFLOW_HOME=~/airflow # 홈디텍토리 설정
AIRFLOW_VERSTION=2.2.3 # airflow 버전 설정
# python 버전 설정
PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
# constraint file 지정
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
# pip install
pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
airflow webserver
airflow scheduler
background로 실행하는 것이 편하긴 하다
nohup airflow webserver &
nohup airflow scheduler &