[webserver]
authenticate = True
auth_backend = airflow.contrib.auth.backends.password_auth
已经添加
[root@ip-173-16-0-34 airflow]# python
Python 3.8.5 (default, Feb 18 2021, 01:24:20)
[GCC 7.3.1 20180712 (Red Hat 7.3.1-12)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import airflow
>>> from airflow import models, settings
>>> from airflow.contrib.auth.backends.password_auth import PasswordUser
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'airflow.contrib.auth'
>>>
你好,我是有问必答小助手。为了技术专家团更好地为您解答问题,烦请您补充下(1)问题背景详情,(2)您想解决的具体问题,(3)问题相关代码图片或者报错信息。便于技术专家团更好地理解问题,并给出解决方案。
您可以点击问题下方的【编辑】,进行补充修改问题。
楼主解决了,我现在也遇到了这个问题
请问这个问题是怎么解决的啊? 我也遇到一样的问题,网上资料很少