Oma*_*r14 6 python-2.7 airflow apache-airflow
我最近安装了apache airflow 1.8.1,我执行了以下命令:
airflow initdb
返回以下错误:
Traceback (most recent call last):
File "/usr/bin/airflow", line 18, in <module>
from airflow.bin.cli import CLIFactory
File "/usr/lib/python2.7/dist-packages/airflow/bin/cli.py", line 65, in <module>
auth=api.api_auth.client_auth)
AttributeError: 'module' object has no attribute 'client_auth'
Run Code Online (Sandbox Code Playgroud)
我尝试了几种解决方案,但它不起作用.
use*_*598 12
我弄清楚我们做错了什么.该领域auth_backend=airflow.contrib.auth.backends.password_auth
需要在不足webserver
之下api
.添加它,如果它还没有.auth_backend
因为有authenticate
等多个字段.