Airflow 3 Tutorial for Beginners: Free Hands-On Lab
An Airflow 3 tutorial you do, not just read: 12 lessons in a browser IDE, run on a local Docker Airflow, with the real Airflow UI. Free, no cloud account.
Quick answer: Write Airflow DAGs and Spark code, run them in Docker, and see the Airflow UI and Spark UI.
Related: Airflow Lab · Learn Apache Airflow Free: Hands-On Airflow Lab · Airflow and Spark in Docker: Local Setup With Both UIs · Airflow DAG Examples You Can Run: TaskFlow, Branching, Retries · Free Data Engineering Playgrounds: PySpark, Delta Lake, dbt and Airflow
How to use the Airflow 3 Tutorial for Beginners: Free Hands-On 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.
- Start the lab with the Docker commands
- Paste the token and connect
- Pick a lesson, then press Test DAG or Run file
Tips
- Test DAG runs the whole DAG once in the terminal. Trigger runs it through the scheduler, so you can watch it in the Airflow UI.
- Tick Keep Spark UI open before running a Spark file, then press Spark UI.
- Click a task in the DAGs tab to read its log.
Example
Input: Lesson 1: your first DAG
Output: Two tasks run in order and succeed
Browse by topic
- Free Data Engineering Playgrounds: PySpark, Delta Lake, dbt and Airflow
- dbt Project Visualizer and dbt Lineage Guides
- Avro Guides and Free Avro Tools
- Snowflake, BigQuery, Databricks and dbt Tools
- Export and Share Data Transformations as SQL, pandas and PySpark
- Offline and Private Data Tools
- Parquet Guides and Free Parquet Tools
- CSV Guides and Free CSV Tools
- JSON Guides and Free JSON Tools
- Excel Guides and Free Excel Tools
- Data Privacy Guides and Free Tools
- Test Data Guides and Free Generators
- Data Cleaning Guides and Free Tools
- AI Data Tools and Guides
- Extract Data from Screenshots and APIs
- Data Lineage and Audit Trail Guides
- File Format Guides and Free Tools
Who uses Data Utility
- Free Data Tools for Marketing Lists
- Free Data Tools for Finance and Accounting Exports
- Free Data Tools for Developers
- Free Data Tools for Data Analysts
- Free Data Tools for Small Business
- Data Tools for Quant Developers and Finance Teams
- Test Data Tools for QA Engineers
- Free Data Tools for Data Engineers
- Free Data Tools for Students and Educators
Frequently asked questions · Data format benchmark
Frequently asked questions
What is new in Airflow 3?
A new React UI, the airflow.sdk package for DAGs, an API server and DAG versioning. The lab runs Airflow 3.1 so you see the current UI.
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
- 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.
- Learn Apache Airflow Free: Hands-On Airflow Lab: Practise Apache Airflow hands-on, free: DAGs, dependencies, TaskFlow, schedules, retries, branching and mapping, with 11 lessons and the real Airflow UI on your laptop.
- Airflow and Spark in Docker: Local Setup With Both UIs: Run Apache Airflow 3 and PySpark together in one Docker image: the Airflow UI on localhost:8080, the Spark UI on localhost:4040 and the Spark History Server on localhost:18080. No docker-compose file.
- Airflow DAG Examples You Can Run: TaskFlow, Branching, Retries: Run real Airflow 3 DAG examples free: first DAG, dependencies, TaskFlow and XCom, schedules and catchup, retries, branching, dynamic task mapping, task groups and a Spark pipeline.