Reputation: 4243
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?
Upvotes: 3
Views: 4041
Reputation: 51
Install airflow by pulling the Git repository
pip install 'apache-airflow==2.6.1' \
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.6.1/constraints-3.7.txt"
Run the application in standalone with.
airflow standalone
NB: Airflow Standalone is for development purposes only. Do not use this in production!
Make sure to collect your usnm and pw,
Finally, run your localhost from your browser and input your credential
localhost:8080
You can now access your DAG (Directed Acyclic Graph) web interface to build and schedule jobs.
Refer to https://github.com/apache/airflow for more information.
Upvotes: 1
Reputation: 21
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.
Upvotes: 2
Reputation:
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
Upvotes: 1
Reputation: 24603
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
Upvotes: 1