Giter Club home page Giter Club logo

cloud_music_modeling's Introduction

cloud_music_modeling

Overview

This project is focused on building an ETL pipeline in the AWS cloud for a music streaming app, Sparkify. The data is stored in two s3 buckets, one with log data in JSON, and one with song metadata in JSON. The goal to have a data mart with normalized tables for analysis in Redshift.

Using

  • AWS s3 buckets
  • AWS Redshift

Database Schema

The data is modeled in a star schema

fact table

  • songlplays

dimension tables

  • users
  • songs
  • artists
  • time

ETL Pipeline

Before running the pipeline, a Redshift cluster is running with an ARN (amazon resource name) that has S3 read access.

To run the pipeline call create_tables.py then etl.py from the terminal.

python create_tables.py

This script

  • connects to the Redshift cluster
  • drops any tables if they exists
  • creates two staging tables to copy the JSON from the s3
  • creates normalized tables in the start schema for analytics
  • closes the connection to the cluster
python etl.py

This script

  • connects to the Redshift cluster
  • copies the data from the s3 buckets to the staging tables in the cluster
  • inserts data into normalized tables from staging tables
  • closes the connection to the cluster
sql_queries.py

Holds all of the SQL used for creating tables, and copying and inserting data into the Redshift Cluster.

cloud_music_modeling's People

Contributors

robillersomeone 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.