Coder Social home page Coder Social logo

salsuwai / data_lake Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 21 KB

In this project, We will use Spark and data lakes to build an ETL pipeline for a data lake hosted on S3. To complete the project, you will need to load data from S3, process the data into analytics tables using Spark, and load them back into S3. We will deploy this Spark process on a cluster using AWS.

Jupyter Notebook 90.88% Python 9.12%
data-lake aws s3-bucket etl-pipeline apache-spark redshift-cluster data-engineering

data_lake's Introduction

Data_Lake_Spark

Project summary:

In this project, We will use Spark and data lakes to build an ETL pipeline for a data lake hosted on S3. To complete the project, you will need to load data from S3, process the data into analytics tables using Spark, and load them back into S3. We will deploy this Spark process on a cluster using AWS.

Project: Data Lake

Introduction

A music streaming startup, 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.

As their data engineer, you are tasked with 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 their analytics team to continue finding insights in what songs their users are listening to.

You'll be able to test your database and ETL pipeline by running queries given to you by the analytics team from Sparkify and compare your results with their expected results.

Project Description

In this project, you'll apply what you've learned on Spark and data lakes to build an ETL pipeline for a data lake hosted on S3. To complete the project, you will need to load data from S3, process the data into analytics tables using Spark, and load them back into S3. You'll deploy this Spark process on a cluster using AWS.

Datasets

Note:- the data is located in a AWS S3 bucket provided by udacity.

Song Dataset

The first dataset is a subset of real data from the Million Song Dataset. Each file is in JSON format and contains metadata about a song and the artist of that song. The files are partitioned by the first three letters of each song's track ID. For example, here are filepaths to two files in this dataset.

located here s3://udacity-dend/song_data

Log Dataset

The second dataset consists of log files in JSON format generated by this event simulator based on the songs in the dataset above. These simulate app activity logs from an imaginary music streaming app based on configuration settings.

located here s3://udacity-dend/log_data

PROJECT TABLES :

songplays:

    songplay_id       
    start_time         
    user_id            
    level               
    song_id          
    artist_id         
    session_id          
    location            
    user_agent         

users:

    user_id            
    first_name         
    last_name         
    gender              
    level              

songs :

    song_id        
    title              
    artist_id          
    year               
    duration            

artists:

    artist_id          
    name                
    location        
    latitude          
    longitude         

time :

    start_time          
    hour               
    day                
    week                
    month              
    year              
    weekday             

project steps :

1-create a spark session then save the instance in a variable called spark

2-the path to where the datasets is stored is saved in a variable called "input_data"

3- the desired loaction for the data to be saved within is in the variable called " output_data"

4- the method process_song_data() is called with the parameters "input_data , output_data ,spark" this method will process the song data set and makes the tables [songs_table] & [artist_table]

5-Then the method process_log_data() is called with the parameters "input_data , output_data ,spark" this method will process the log data set and makes the tables [users_table] & [time_table] & [songplays_table]

END OF PROJECT .

data_lake's People

Contributors

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