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

Manikanta Komuravelli picture Manikanta Komuravelli · Feb 11, 2021 · Viewed 24.2k times · Source

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

Answer

kaxil picture kaxil · Feb 11, 2021

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 [email protected] -f admin -l user -p admin