1. Check the following in your airflow.cfg file:
[webserver]
authenticate = True
auth_backend = airflow.contrib.auth.backends.password_auth
filter_by_owner = True
rbac = True
And also remember to Restart Airflow Webserver, if it still doesn't work, run airflow initdb and restart the webserver.
2.https://airflow.apache.org/docs/stable/cli.html#create_user
Command Line Interface Reference — Airflow Documentation
Home Command Line Interface Reference Command Line Interface Reference Airflow has a very rich command line interface that allows for many types of operation on a DAG, starting services, and supporting development and testing. Content Positional Arguments Sub-commands: backfill list_dag_runs list_ta...
airflow.apache.org
2019.11.29 (0) | 2020.01.10 |
---|---|
airflow #3 (0) | 2020.01.10 |
airflow #2 (0) | 2020.01.10 |
airflow #1 (0) | 2020.01.10 |