참조 및 출처 링크 :: https://dydwnsekd.tistory.com/category/BigData/Airflow?page=3
저번에 인터넷이 연결 된 환경에서 진행
yum install python3 python3-devel mysql-python vim
pip3 install -U pip
AIRFLOW_VERSION=2.0.0
PYTHON_VERSION="$(python3 --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
# For example: 3.6
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
# For example: https://raw.githubusercontent.com/apache/airflow/constraints-1.10.14/constraints-3.6.txt
pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
스크립트를 작성해서(주석은 제거해도 됨) 하지만, 그냥 다 적어서 진행 한다.
잘 작성하면 한번에 된다.
주석부분은 생략 해서 작성하면 정상적으로 동작 한다.
설치 완료다. 이제 개발 준비의 준비 단계가 끝났다.
ps) 혹시 몰라 yum을 먼저 업데이트 해보길 바란다.
이미 업데이트 된 상태
https://raw.githubusercontent.com/apache/airflow/constraints-2.0.0/constraints-3.6.txt
이걸 처도 됩니다.