Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Julian de Ruiter 40b52ba6fc
Update for Airflow 2.0 (#34)
4 years ago
..
40b52ba6fc
Update for Airflow 2.0 (#34)
4 years ago
40b52ba6fc
Update for Airflow 2.0 (#34)
4 years ago
40b52ba6fc
Update for Airflow 2.0 (#34)
4 years ago
40b52ba6fc
Update for Airflow 2.0 (#34)
4 years ago
40b52ba6fc
Update for Airflow 2.0 (#34)
4 years ago

README.md

You have to be logged in to leave a comment. Sign In

Chapter 4

Code accompanying Chapter 4 of the book Data Pipelines with Apache Airflow.

Contents

This folder contains DAGs from Chapter 4. The filenames and DAG ids follow the listing ids in the book. Near the end of the chapter, we demonstrate usage of the PostgresOperator. The Docker Compose example in this folder creates a second Postgres database so you don't have to setup things yourself when running the example. If you like, you can access it:

  • Host: localhost
  • Port: 5433
  • Username: airflow
  • Password: airflow
  • Database: airflow

This database is initialized with the pageview_counts table as shown in the book.

Usage

To get started with the code examples, start Airflow with Docker Compose with the following command:

docker-compose up -d

The webserver initializes a few things, so wait for a few seconds, and you should be able to access the Airflow webserver at http://localhost:8080.

To stop running the examples, run the following command:

docker-compose down -v
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...