centos 7环境下:python
mkdir airflow //建立airflow文件夹git
git clone https://github.com/puckel/docker-airflow.git /root/airflow //下载源码到airflow文件夹github
docker run -d -p 8082:8080 puckel/docker-airflow //安装并运行airflowdocker
docker exec -it af2044c3b40c bash // 进入容器数据库
airflow initdb // 初始化数据库centos
出现错误:bash
airflow.exceptions.AirflowException: Could not create Fernet object: Incorrect paddingcode
解决办法:blog
python -c "from cryptography.fernet import Fernet;get
print(Fernet.generate_key().decode())"
export AIRFLOW__CORE__FERNET_KEY=oNu9XwewQNyx9mAJT2vZvtm3qzPRZIWRqwk9hSVch4A=
以下图:
airflow initdb // 从新运行初始化数据库
输入网址:
http://172.16.10.22:8083/admin/,效果图以下: