Code Monkey home page Code Monkey logo

cloud-data-warehouse's Introduction

cloud-data-warehouse or SCEP: Sparkify Cloud ETL pipeline

SCEP is a project for an imaginary music streaming startup called Sparkify. Sparkify has grown their user base and song database and want to move their processes and data onto the cloud. SCEP build an ETL pipeline that extracts their data from S3, stages them in Redshift, and transforms data into a set of dimensional tables for their analytics team

SCEP files:

the SCEP project includes six files but four files are required to run the script.

  • README.md
  • test.ipynb
  • dwh.cfg - Necessary - Data Warehouse config file. you must edit this
  • sql_queries.py - Necessary - contains all sql queries
  • create_table.py - Necessary - create fact and dimension tables for the star schema in Redshift.
  • etl.py - Necessary - load data from S3 into staging tables staging tables

and process that data into the five fact\dimension tables on Redshift. fact and dimension diagram

Prerequisites

All libraries you need to install:

  • pandas
  • configparser
  • psycopg2
  • sql_queries
  • json

How to create the database using SCEP:

First, we need edit dwh.cfg file. Second, create the database: python create_tables.py Third, run: python3 etl.py

cloud-data-warehouse's People

Contributors

fatemehtarashi avatar

Watchers

 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.