天天看点

airflow的安装部署

1. 安装python3.6.8

http://www.voidcn.com/article/p-pxlwdned-byr.html, yum -y安装对应的依赖

2. 在线安装airflow

pip3 install apache-airflow

3. 执行airflow命令,在哪里执行就会在哪里生成配置文件

mysql要创建一个airflow库,同时my.cnf 设置explicit_defaults_for_timestamp=1修改airflow.cfg配置文件

4.初始化数据库配置 

airflow db init

5. 创建页面登录用户

airflow users create --lastname user --firstname airflow --username airflow --email [email protected] --role Admin --password airflow

6. 启动服务

airflow scheduler -D

airflow webserver -D

7. 页面访问

http://localhost:8081