GithubHelp home page GithubHelp logo

etl-pipeline-with-spark-datalakes's Introduction

Apache Spark and Data Lake for Sparkify

Summary of project

Startup called Sparkify wants to analyze the data they've been collecting on songs and user activity on their new music streaming app.Sparkify, has grown their user base and song database even more and want to move their data warehouse to a data lake. Their data resides in S3, in a directory of JSON logs on user activity on the app, as well as a directory with JSON metadata on the songs in their app.

We will be building an ETL pipeline that extracts their data from S3, processes them using Spark, and loads the data back into S3 as a set of dimensional tables. This will allow the analytics team to continue finding insights in what songs their users are listening to.

A Spark ETL Pipeline was created, which reads the data stored inside S3 buckets.

How to run the python scripts

To start the ETL pipeline, you have to run a python script etl.py:

To fill tables via ETL:

python etl.py

Files in the repository

  • etl.py: Python script to extract the needed information from Song and Log uses Spark, performs data normalization and parquet file writing

Schema

  • Fact Table: songplays_table
  • Dimension Tables: users_table, songs_table, artists_table and time_table.

Dataset used

The data is queried from s3 buckets hosten at AWS

  • Song data: s3://udacity-dend/song_data
  • Log data: s3://udacity-dend/log_data

etl-pipeline-with-spark-datalakes's People

Contributors

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