python:27
我刚刚在一个带有mysql后端的新vm GCP上安装了airflow。
(sudo pip安装apache airflow和sudo pip安装apache airflow[mysql])
我没有自己创建任何DAG,但尝试运行示例以了解其工作原理。
我已更改配置以使用
executor = LocalExecutor
完成了
export AIRFLOW_HOME=`pwd`/airflow (in both shells)
airflow initdb
Webserver以“airflow Webserver”的形式启动,在另一个shell中,我启动了“airflow scheduler”。
我试着进入web ui,通过单击“DAGs”,然后单击“运行”按钮来统计任务。(此时会打开一个对话框,询问我是否要立即运行)
我尝试启动的是“example\u bash\u操作符,example\u http\u操作符,example\u python\u操作符”,它们现在显示为正在运行。但情况并没有改变。我也点击了,所以3个DAG显示为“on”。
当我去浏览时->任务实例并查看应该启动它的第一个实例显示:
All dependencies are met but the task instance is not running.
In most cases this just means that the task will probably be scheduled soon unless:
.......
我的服务器没有提供任何有意义的输出。我的调度程序正在输出
[2017-11-20 13:42:37,460] {jobs.py:1407} INFO - Heartbeating the process manager
[2017-11-20 13:42:37,460] {jobs.py:1443} INFO - Heartbeating the executor