wesleyjr01 / udacity_project_data_pipelines_airflow

Udacity Dataengineer Degree - Data Pipelines with Airflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data Pipelines with Airflow

Udacity Data Engineering Nanodegree - Data Pipelines with Airflow

Project Context

  • A music streaming company, Sparkify, has decided that it is time to introduce more automation and monitoring to their data warehouse ETL pipelines and come to the conclusion that the best tool to achieve this is Apache Airflow.
  • They have also noted that the data quality plays a big part when analyses are executed on top the data warehouse and want to run tests against their datasets after the ETL steps have been executed to catch any discrepancies in the datasets.
  • The source data resides in S3 and needs to be processed in Sparkify's data warehouse in Amazon Redshift. The source datasets consist of JSON logs that tell about user activity in the application and JSON metadata about the songs the users listen to.

Data Modeling Solution

DAGs with Airflow

  • To Orchestrate all the jobs necessary from creating the all the Staging, Facs and Dimension databases, to loading the data inside them and perform data qualities, tracking all of it's dependencies, we are using Airflow as a Job Orchestration Tool, and the final DAG proposed follows:
    dag_picture.png
  • The DAG definition can be found in dags/sparkify_redshift_etl.py
  • The Custom Operators defined can be found in plugins/operators. Additionally, all the SQL Queries necessary to create and insert data into the tables are defined in plugins/helpers/sql_queries.py

Reference: Airflow Quickstart with Docker

About

Udacity Dataengineer Degree - Data Pipelines with Airflow


Languages

Language:Python 96.1%Language:Shell 3.9%