centos 7環境下:
mkdir airflow //創建airflow文件夾
git clone https://github.com/puckel/docker-airflow.git /root/airflow //下載源碼到airflow文件夾
docker run -d -p 8082:8080 puckel/docker-airflow //安裝並運行airflow
docker exec -it af2044c3b40c bash // 進入容器
airflow initdb // 初始化數據庫
nohup airflow scheduler &
出現錯誤:
airflow.exceptions.AirflowException: Could not create Fernet object: Incorrect padding
解決辦法:
python -c "from cryptography.fernet import Fernet;
print(Fernet.generate_key().decode())"
export AIRFLOW__CORE__FERNET_KEY=oNu9XwewQNyx9mAJT2vZvtm3qzPRZIWRqwk9hSVch4A=
如下圖:
airflow initdb // 重新運行初始化數據庫
輸入網址:
http://172.16.10.22:8083/admin/,效果圖如下:
參考文獻:https://www.wandouip.com/t5i351858/
Docker嘗鮮之Airflow快速安裝
https://blog.csdn.net/wendingzhulu/article/details/53417328
airflow之DAGs詳解
https://blog.csdn.net/wendingzhulu/article/details/53417328
CentOS7安裝Airflow
https://www.cnblogs.com/zimo-jing/p/11556220.html
Airflow使用
https://www.cnblogs.com/skyrim/p/7456170.html
AirFlow簡介
https://www.cnblogs.com/cord/p/9450910.html
docker 官方文檔
http://airflow.apache.org/start.html
配置用戶
https://blog.csdn.net/LuCh1Monster/article/details/93867125
https://github.com/puckel/docker-airflow