gpt4 book ai didi

Airflow 连接 UI 不可见

转载 作者:行者123 更新时间:2023-12-02 10:19:40 24 4
gpt4 key购买 nike

Airflow version: 1.10.2
Ubuntu: 18.04 (bionic)
Python: 3.6.5

问题:我不知道如何操作,但当我单击菜单中的“管理”时,连接不可见。有人遇到过这种事情吗?

enter image description here

当我编辑 URL 并转到 localhost:8080/admin/connections 时,我看到以下响应。自从

以来,这工作得很好

enter image description here

但是当我列出来自airflow cli 的连接时,它可以工作。 我不知道为什么它在 UI 上不可见,但可以从 cli 访问?或者我应该如何授予 UI 用户访问“连接”的权限?

最佳答案

这是由于 10.0.2 中的更改所致。在 10.0.2 之前,用户有一个硬编码的 super 用户标志。

要向现有用户授予 super 用户权限,以便他们可以管理连接、变量等,您需要在 Airflow 元数据数据库的 users 表中切换 super 用户标志。

它们记录了如何使用 UPDATING.md 文件中的代码使用户成为 super 用户,请参阅 https://github.com/apache/airflow/blob/master/UPDATING.md#user-model-changes

关于 Airflow 连接 UI 不可见,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55254816/

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