Skip to content
tharunsikhinam edited this page Jun 11, 2019 · 5 revisions

Description

The ETL module is responsible for extracting data from Amazon and Goodreads data sources, performing transformations and storing it back as JSON files on disk. All relevant modules are stored under thenextbestbook/etl. The ETL module uses pyspark and spark's in built SparkSQL library

Setup

Download the datasets provided in the README file and store them in etl/data folder.

Run the following spark jobs

spark-submit etl/etl_goodreads_script.py
spark-submit etl/etl_amazon_script.py

This will generate books_with_authors.json and ratings_and_reviews.json files in the data folder

Project structure

Clone this wiki locally