Airflow) 설치 간단 예시
2022. 11. 17. 18:06ㆍ개발/Airflow
export AIRFLOW_HOME="$(pwd)" # 원하는 위치에 설정하기
echo "$AIRFLOW_HOME"
mkdir ~/airflow
export AIRFLOW_HOME=~/airflow
AIRFLOW_VERSION=2.3.2
PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
pip install --ignore-installed PyYAML
pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
airflow users create --username admin --firstname test --lastname lee --role Admin --password admin --email srlee@gmail.com
airflow standalone
airflow db init
airflow webserver -p 8080
airflow scheduler
728x90