Skip to content

Data lake and an ETL pipeline in Spark that loads data from S3, processes the data into analytics tables, and loads them back into S3.

License

Notifications You must be signed in to change notification settings

FatemehTarashi/data-lake-s3-spark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDLEP: Sparkify Data Lake ETL pipeline

SDLEP is a project for an imaginary music streaming startup called Sparkify. Sparkify, has grown their user base and song database even more and want to move their data warehouse to a data lake. SDLEP build 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.

SDLEP files:

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

  • README.md
  • test.ipynb
  • dl.cfg - Necessary - Data Lake config file. you must edit this
  • etl.py - Necessary - load data from S3 into staging tables, process that data into the five fact\dimension tables and loads the data back into S3. - you must put your output data path on output_data in main function diagram.png

Prerequisites

All libraries you need to install:

  • pyspark.sql
  • configparser
  • os
  • datetime

How to create the data lake using SDLEP:

First, we need edit dwh.cfg file. Second, we need put our output data path in etl.py Third, run:

python3 etl.py

About

Data lake and an ETL pipeline in Spark that loads data from S3, processes the data into analytics tables, and loads them back into S3.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published