airflow

First time login to Apache Airflow asks for username and password, what is the username and password?


I've just installed Apache Airflow, and I'm launching the webserver for the first time, and it asks me for username and password, I haven't set any username or password.

Can you let me know what is the default username and password for airflow?

enter image description here


Solution

  • There is no default username and password created if you are just using python wheel.

    Run the following to create a user:

    For Airflow >=2.0.0:

    airflow users  create --role Admin --username admin --email admin --firstname admin --lastname admin --password admin
    

    OR

    For Airflow <1.10.14:

    airflow create_user -r Admin -u admin -e admin@example.com -f admin -l user -p admin