Giter VIP home page Giter VIP logo

udacity-dend-project-5's Introduction

Sparkify Airflow Data Pipeline

Udacity Data Engineering Nanodegree Project 5: Data Pipelines

Overview

This project builds a data pipeline for Sparkify using Apache Airflow that automates and monitors the running of an ETL pipeline.

The ETL loads song and log data in JSON format from S3 and processes the data into analytics tables in a star schema on Reshift. A star schema has been used to allow the Sparkify team to readily run queries to analyze user activity on their app. Airflow regularly schedules this ETL and monitors its success by running a data quality check.

Structure

  • udac_example_dag.py contains the tasks and dependencies of the DAG. It should be placed in the dags directory of your Airflow installation.
  • create_tables.sql contains the SQL queries used to create all the required tables in Redshift. It should be placed in the dags directory of your Airflow installation.
  • sql_queries.py contains the SQL queries used in the ETL process. It should be placed in the plugins/helpers directory of your Airflow installation.

The following operators should be placed in the plugins/operators directory of your Airflow installation:

  • stage_redshift.py contains StageToRedshiftOperator, which copies JSON data from S3 to staging tables in the Redshift data warehouse.
  • load_dimension.py contains LoadDimensionOperator, which loads a dimension table from data in the staging table(s).
  • load_fact.py contains LoadFactOperator, which loads a fact table from data in the staging table(s).
  • data_quality.py contains DataQualityOperator, which runs a data quality check by passing an SQL query and expected result as arguments, failing if the results don't match.

Configuration

  • Make sure to add the following Airflow connections:
    • AWS credentials
    • Connection to Postgres database

udacity-dend-project-5's People

Contributors

davidrubinger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.