Setting up Airflow
In this exercise, you'll learn how to add a DAG to Airflow. To the right, you have a terminal at your disposal. The workspace comes with Airflow pre-configured, but it's easy to install on your own.
You'll need to move the dag.py
file containing the DAG you defined in the previous exercise to, the DAGs folder. Here are the steps to find it:
- The airflow home directory is defined in the
AIRFLOW_HOME
environment variable. Typeecho $AIRFLOW_HOME
to find out. - In this directory, find the
airflow.cfg
file. Usehead
to read the file, and find the value of thedags_folder
.
Now you can find the folder and move the dag.py
file there: mv ./dag.py <dags_folder>
.
Which files does the DAGs folder have after you moved the file?
This exercise is part of the course
Introduction to Data Engineering
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
