Giter VIP home page Giter VIP logo

datamodeling-with-apache-cassandra's Introduction

DataModeling With Apache Cassandra

Introdcution:

A startup called Sparkify wants to analyze the data they've been collecting on songs and user activity on their new music streaming app. The analysis team is particularly interested in understanding what songs users are listening to. Currently, there is no easy way to query the data to generate the results, since the data reside in a directory of CSV files on user activity on the app.

In this project, I have performed data modeling with Apache Cassandra and completed an ETL pipeline using Python. To complete the project, I will need to model the data by creating tables in Apache Cassandra to run queries and The ETL pipeline that transfers data from a set of CSV files within a directory to create a streamlined CSV file to model and insert data into Apache Cassandra tables.

Data Source: Event Data files

For this project, there is one dataset: event_data. The directory of CSV files partitioned by date. Here are examples of filepaths to two files in the dataset:

event_data/2018-11-08-events.csv
event_data/2018-11-09-events.csv
  • The files within this directory will be processed creating a single csv file
  • The ouput event data file will contain all data as shown in the screenshot of output file below: eventData

Project Parts:

There are two parts in this project:

    1. To build an etl pipeline for processing the event data csv files
    1. To model the database based upon the queries

Data Sink:

There are 3 tables created in apache cassandra keyspace 'Sparkify' for the purpose of specific queries:

  • session_songs
  • user_songs
  • app_history

Conclusion:

The whole etl pipeline will process the event data stored as csv file formats to inject into the Apache Cassandra tables. The tables are designed and created to serve specific queries.

datamodeling-with-apache-cassandra's People

Contributors

rishabh4312 avatar

Watchers

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