docker上安裝airflow

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/

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

相關文章
相關標籤/搜索