气流连接用户界面不可见 [英] Airflow connection UI not visible

查看:108
本文介绍了气流连接用户界面不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

问题:我不确定如何操作,但是在菜单中单击管理员时看不到连接。

Issue: I am not sure how but the connections are not visible when I click Admin in the menu. Has someone ever faced this thing?

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

When I edit the URL and go to localhost:8080/admin/connections I see the below response. This was working fine since

但是当我列出来自aircli的连接,它起作用。 我不确定为什么它在UI上不可见,而是可以从cli访问?还是应该授予UI用户访问连接权限的权限?

But when I list the connections from airflow cli, it works. I am not sure why it is not visible on UI but rather accessible from cli? Or how should I give the UI user access to 'Connections'?

推荐答案

这是由于更改10.0.2。在10.0.2之前,有一个针对用户的硬编码超级用户标志。

This is due to a change in 10.0.2. Prior to 10.0.2, there was a hardcoded superuser flag for users.

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

To give an existing user superuser permissions, so that they can manage connections, variables, etc, you need to toggle the superuser flag in the users table in Airflow's metadata database.

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

They document how to make a user a superuser using code in the UPDATING.md file, see https://github.com/apache/airflow/blob/master/UPDATING.md#user-model-changes

这篇关于气流连接用户界面不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆