Code Monkey home page Code Monkey logo

data-warehouses-with-aws's Introduction

Data Warehouse with Redshift

Overview

The schema for analyses Song play dataset from the start-up called Sparkify In this project, will build the ETL pipeline extracting from the dataset in the S3 stage and transform them into a set of dimensional database for analytics team to continues analysis

Datasets

We will working with two dataset reside in S3 using the following links:

1.Song Play: s3://udacity-dend/song_data 2.Log Data: s3://udacity-dend/log_data and for the log data json path is s3://udacity-dend/log_json_path.json

Song Play data

In this data, it is a subset of the real data from Million Song Dataset Each file is in JSON format and contains metadata about a song and the artist of that song.

Log Dataset

This dataset, is consist of log file in JSON format that generated by Event Simulator based on the song event from first dataset

For example log_data

Database Schema

In the AWS redshift, they are using star scheme in building databese model. The star schema is consist of one fact table and multiple dimension tables (in this project is four dimension tables).

1. Fact Table

For fact table, in the log data it consist of the data that link to Songplay data. In this project we use 'page' matched value with 'NextSong'. Because we want only the data that have NextSong.

2. Dimension Table

In dimension table, consists of USERS, ARTISTS, SONG, and TIMES, they all connected to SONGPLAY table

ETL Pipeline

Extracted data fromboth dataset and loaded into the STAGE_EVENTS and STAGE_SONGS table. By using the function load_staging_tables in etl.py file

After complete loading data into stage tables. Insert data in to fact and dimension table using function insert_tables in etl.py file

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.