You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Airflow 3.0版本airflow users create命令执行失败求助

Airflow 3.0 创建用户详细步骤

一、默认使用SimpleAuthManager创建用户

Airflow 3.0 默认采用 SimpleAuthManager 作为认证管理器,创建用户需注意以下要点:

  • 命令必须包含必填的--password参数,且命令行反斜杠后需保留空格(避免参数解析错误)
  • 完整示例命令:
airflow users create \
    --username aa \
    --firstname aa \
    --lastname aa \
    --role Admin \
    --email aa@example.org \
    --password your_secure_password

二、切换为Flask AppBuilder(FabAuthManager)创建用户

若需继续使用基于Flask AppBuilder的认证体系,需完成以下步骤:

  1. 安装对应的插件:
pip install apache-airflow-providers-flask-appbuilder
  1. 修改airflow.cfg配置文件:
    在[core]区块下找到auth_manager项,设置为:
auth_manager = airflow.providers.fab.auth_manager.FabAuthManager
  1. 重启Airflow服务,使配置生效
  2. 创建用户(执行命令后会交互式提示输入密码,无需在命令中指定--password):
airflow users create \
    --username aa \
    --firstname aa \
    --lastname aa \
    --role Admin \
    --email aa@example.org

内容的提问来源于stack exchange,提问作者rashmi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 06:35:58