如何清除气流中的默认示例问题

编程入门 行业动态 更新时间:2024-10-27 16:30:33
本文介绍了如何清除气流中的默认示例问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是Airbnb开源工作流/数据管道软件 airflow 的新用户。启动Web UI后,有几十个默认示例dag。我尝试了多种方法来删除这些问题,但没有成功。

I am a new user of Airbnb's open source workflow/datapipeline software airflow. There are dozens of default example dags after the web UI is started. I tried many ways to remove these dags, but I've failed to do so.

  • load_examples = False 在airflow.cfg中设置。
  • 文件夹lib / python2.7 / site-packages / airflow / example_dags已删除。
  • load_examples = False is set in airflow.cfg.
  • Folder lib/python2.7/site-packages/airflow/example_dags is removed.

这些示例的状态删除dags文件夹后,dags变为灰色,但是这些项目仍然占据了Web UI屏幕。并且在airflow.cfg中将新的dag文件夹指定为 dags_folder = / mnt / dag / 1 。我检查了这个dag文件夹,什么都没有。我真的很奇怪,为什么要删除这些示例如此困难。

States of those example dags are changed to gray after I removed the dags folder, but the items still occupy the web UI screen. And a new dag folder is specified in airflow.cfg as dags_folder = /mnt/dag/1. I checked this dag folder, nothing is there. It's really weird to me why it is so difficult to remove these examples.

推荐答案

启动气流时,请确保设置:

When you startup airflow, make sure you set:

load_examples = False

c $ c> airflow.cfg

inside your airflow.cfg

如果您已经开始将气流设置为false,则可以将其设置为false并运行cli中的 airflow resetdb (!这会破坏所有当前的dag信息!)。

If you have already started airflow with this not set to false, you can set it to false and run airflow resetdb in the cli (!which will destroy all current dag information!).

或者,您可以进入 airflow_db 并从 dag 表中手动删除这些条目。

Alternatively you can go into the airflow_db and manually delete those entries from the dag table.

更多推荐

如何清除气流中的默认示例问题

本文发布于:2023-11-24 11:08:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624960.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:气流   示例

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!