centos 7環境下:html
mkdir airflow //建立airflow文件夾python
git clone https://github.com/puckel/docker-airflow.git /root/airflow //下載源碼到airflow文件夾git
docker run -d -p 8082:8080 puckel/docker-airflow //安裝並運行airflowgithub
docker exec -it af2044c3b40c bash // 進入容器docker
airflow initdb // 初始化數據庫數據庫
出現錯誤:apache
airflow.exceptions.AirflowException: Could not create Fernet object: Incorrect paddingcentos
解決辦法:bash
python -c "from cryptography.fernet import Fernet;post
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/
https://blog.csdn.net/wendingzhulu/article/details/53417328
https://blog.csdn.net/wendingzhulu/article/details/53417328
https://www.cnblogs.com/zimo-jing/p/11556220.html
https://www.cnblogs.com/skyrim/p/7456170.html
https://www.cnblogs.com/cord/p/9450910.html
http://airflow.apache.org/start.html