小编May*_*mar的帖子

Apache Airflow不调度任务

我已经安装了apache-airflow(版本v1.9.0)以及python 2.7。为了测试其安装是否正确,我尝试从浏览器的交互式视图触发教程DAG。该界面显示DAG正在运行,但调度程序未显示任何活动。

以下是我尝试的步骤

  1. 安装气流
pip install apache-airflow
Run Code Online (Sandbox Code Playgroud)
  1. 安装加密以使用Fernet密钥设置加密
pip install apache-airflow[crypto]
Run Code Online (Sandbox Code Playgroud)
  1. 生成一个fernet_key并添加airflow.cfg文件:
from cryptography.fernet import Fernet
fernet_key= Fernet.generate_key()
print(fernet_key)
Run Code Online (Sandbox Code Playgroud)
  1. 初始化气流sqlite数据库
airflow initdb
Run Code Online (Sandbox Code Playgroud)
  1. 启动气流网络服务器
airflow webserver -p 8080
Run Code Online (Sandbox Code Playgroud)
  1. 在其他窗口中启动气流调度器
airflow scheduler
Run Code Online (Sandbox Code Playgroud)
  1. tutotial在“气流”页面上触发DAGlocalhost:8080

完成这些步骤后,我无法在调度程序窗口中看到任何移动,这只会让我一直在显示

INFO - Heartbeating the process manager
INFO - Heartbeating the executor
Run Code Online (Sandbox Code Playgroud)

我已经尝试过在本地环境和虚拟环境中运行它。我还通过尝试运行SequentialExecutorLocalExecutor

即使我尝试通过终端触发任务,也不会触发任务 airflow trigger_dag tutorial

我正在使用Mac OS High Sierra版本10.13.3

python python-2.7 airflow airflow-scheduler macos-high-sierra

5
推荐指数
1
解决办法
929
查看次数