'How do you access Airflow Web Interface?

Hi I am taking a datacamp class on how to use Airflow and it shows how to create dags once you have access to an Airflow Web Interface.

Is there an easy way to create an account in the Airflow Web Interface? I am very lost on how to do this or is this just an enterprise tool where they provide you access to it once you pay?



Solution 1:[1]

airflow has a web interface as well by default and default user pass is : airflow/airflow you can run it by using :

airflow webserver --port 8080

then open the link : http://localhost:8080

if you want to make a new username by this command:

airflow create_user [-h] [-r ROLE] [-u USERNAME] [-e EMAIL] [-f FIRSTNAME]
                    [-l LASTNAME] [-p PASSWORD] [--use_random_password]

learn more about Running Airflow locally

Solution 2:[2]

You should install it , it is a python package not a website to register on.

The easiest way to install Airflow is:

pip install apache-airflow

if you need extra packages with it:

pip install apache-airflow[postgres,gcp]

finally run the webserver and the scheduler in different cmd :

airflow webserver # it is by default 8080

airflow scheduler

Solution 3:[3]

You must do this on terminal. Run these commands:

export AIRFLOW_HOME=~/airflow

AIRFLOW_VERSION=2.2.5

PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)"

CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"

pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"

airflow standalone

Then, in there, you can see the username and password provided.

Then, open Chrome and search for:

localhost:8080

And write the username and password.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 eshirvana
Solution 2 Ghilani
Solution 3 Jeremy Caney