我是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.
更多推荐
如何清除气流中的默认示例问题
发布评论