Airflow Lab

Learn Apache Airflow free on your own computer: write DAGs and Spark code, run them in Docker, and see the real Airflow UI and Spark UI. No cloud account.

Quick answer: Write Airflow DAGs and Spark code, run them in Docker, and see the Airflow UI and Spark UI.

Related: Learn Apache Airflow Free: Hands-On Airflow Lab · Free Data Engineering Playgrounds: PySpark, Delta Lake and dbt

How to use the Airflow Lab

Write Airflow DAGs and Spark code, run them in Docker, and see the Airflow UI and Spark UI.

Airflow Lab is a free Apache Airflow playground that runs on your own computer. One Docker command starts Airflow 3 with PySpark. Write DAGs in the dags/ folder and Spark or Python code in the code/ folder, run and test them from an IDE in the browser, and open the real Airflow UI and the real Spark UI. 11 short lessons take you from your first DAG to Spark inside a DAG.

  1. Start the lab with the Docker commands
  2. Paste the token and connect
  3. Pick a lesson, then press Test DAG or Run file

Tips

Example

Input: a DAG that cleans data, runs a Spark job and lists the result

Output: Task states in the lab, the DAG in the Airflow UI, the job in the Spark UI

Browse by topic

Who uses Data Utility

Frequently asked questions · Data format benchmark

Frequently asked questions

Do I need Astronomer, MWAA or Cloud Composer?

No. Apache Airflow 3 runs in Docker on your own computer. No account and no cloud bill.

Can I run Spark from a DAG?

Yes. The lab has PySpark and Java. Put a Spark job in code/ and run it from a DAG task, then open the Spark UI.

Where are my DAGs stored?

In a Docker volume on your computer: dags/ for DAGs and code/ for your Python and Spark code.

What do I need to install?

Only Docker Desktop. The lab brings Airflow, Java and PySpark.

Can I run a Spark job from a DAG?

Yes. Put the job in code/ and call it from a DAG task, for example BashOperator with python /workspace/code/job.py. The lesson Spark inside a DAG shows it.

Where do my DAGs live?

In a Docker volume on your computer. They are kept after you stop the lab.

Related pages

Topic guides

Guides