gpt4 book ai didi

python - Apache Airflow 不调度任务

转载 作者:行者123 更新时间:2023-12-04 21:32:10 24 4
gpt4 key购买 nike

我已经安装了 apache-airflow(版本 v1.9.0)和 python 2.7。为了测试它是否安装正确,我尝试从浏览器的交互式 View 中触发教程 DAG。界面显示 DAG 正在运行,但调度程序没有显示任何事件。

以下是我尝试的步骤

  • 安装 Airflow
  • pip install apache-airflow
  • 使用 fernet key 安装用于设置加密的加密
  • pip install apache-airflow[crypto]
  • 生成一个 fernet_key 并添加到airflow.cfg 文件中:
  • from cryptography.fernet import Fernet
    fernet_key= Fernet.generate_key()
    print(fernet_key)
  • 初始化一个 Airflow sqlite db
  • airflow initdb
  • 启动 Airflow 网络服务器
  • airflow webserver -p 8080
  • 在不同的窗口中启动 Airflow 调度程序
  • airflow scheduler
  • 触发 tutotial Airflow 页面上的 DAG localhost:8080

  • 按照这些步骤操作后,我在调度程序窗口中看不到任何移动,这只会让我一直显示
    INFO - Heartbeating the process manager
    INFO - Heartbeating the executor

    我已经尝试在本地环境和虚拟环境中运行它。我也试过运行 SequentialExecutorLocalExecutor
    即使我尝试通过终端通过 airflow trigger_dag tutorial 触发该任务也不会触发该任务

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

    最佳答案

    默认情况下,每个任务旁边的开关都处于“关闭”状态。对我来说就是这样

    关于python - Apache Airflow 不调度任务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48581648/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com