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_HOMEenvironment variable. Typeecho $AIRFLOW_HOMEto find out. - In this directory, find the
airflow.cfgfile. Useheadto 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?
Questo esercizio fa parte del corso
Introduction to Data Engineering
Esercizio pratico interattivo
Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi
Inizia esercizio