Giter Club home page Giter Club logo

udacityp3's Introduction

Summary

This project is the third project for Udacity Data Engineering Nanodegree Program. The project aims to test the understanding of Data warehousing concepts. The task includes facilitating the Sparkify start up in setting up a data warehouse that would have the songs data to which the users are listening to. This would help Sparkify analyze the user activities.

The project is written in python and uses Amazon s3 for file storage and Amazon Redshift for database storage and data warehouse purpose.

Source Data

The source data is in log files given the Amazon s3 bucket at s3://udacity-dend/log_data and s3://udacity-dend/song_data containing log data and songs data respectively.

Log files contains songplay events of the users in json format while song_data contains list of songs details.

Database Schema

Following are the fact and dimension tables made for this project:

Dimension Tables:

  • users
    • columns: user_id, first_name, last_name, gender, level
  • songs
    • columns: song_id, title, artist_id, year, duration
  • artists
    • columns: artist_id, name, location, lattitude, longitude
  • time
    • columns: start_time, hour, day, week, month, year, weekday

Fact Table:

  • songplays
    • columns: songplay_id, start_time, user_id, level, song_id, artist_id, session_id, location, user_agent

To run the project:

  • Run command to install requirements.

    pip install -r requirements.txt

  • Update the dwh.cfg file with you Amazon Redshift cluster credentials and IAM role that can access the cluster.
  • Run python create_tables.py. This will create the database and all the required tables.
  • Run python etl.py. This will start pipeline which will read the data from files and populate the tables.

udacityp3's People

Contributors

ammadanwer avatar

Watchers

James Cloos 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.