Get startedGet started for free

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. Type echo $AIRFLOW_HOME to find out.
  • In this directory, find the airflow.cfg file. Use head to read the file, and find the value of the dags_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

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise