Coder Social home page Coder Social logo

josephnp732 / bigdatafinalproject Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 12.7 MB

US Road Accidents Data Analysis (2016 - 2020) - Using Hadoop. Final Project for Engineering Big Data Systems Northeastern University INFO 7250 (Summer 2020)

License: MIT License

Java 85.98% Shell 8.90% PigLatin 5.12%
hadoop hive hiveql pig pig-latin java java-8

bigdatafinalproject's Introduction

US Road Accidents Data Analysis (2016 - 2020) - Using Hadoop

Final Project for Engineering Big Data Systems - INFO 7250 (Summer 2020)

Data Source: https://www.kaggle.com/sobhanmoosavi/us-accidents

Pre-requisites:

Have JDK 1.8, AWS CLI, Git, Hadoop, Hive & Pig installed in your local file system

MapReduce Question Set:

! To run, execute ./commands.sh
+ To run on AWS EMR, execute ./aws.sh
  1. Number of Accidents Per Month
  2. Number of Accidents vs Hour of Day
  3. Number of Accidents Per Day of the Week
  4. Side of the Road Percentage
  5. Number of Accidents Per State
  6. Top 10 Accident Prone States (Filtering Techniques Top n Filtering Pattern)
  7. State - Cities -> Inverted Index
  8. Average, Min and Max Temperature per Severity
  9. Count of Accidents Per State Per Year (SecondarySorted with 5 Partitions)
  10. Divide file into partitions divided by state (Inner Join w/ Partitioner)
  11. Proximity to Traffic Object (Percentage / per all traffic)

HIVE Question Set: (./hive)

! To execute hive file >> hive -f ./hive/queries.hql
  1. Number of Accidents per timezone
  2. Number of Accidents per Severity per State (Partitioning)
  3. Top 10 - Weather Condition vs Number of. Accident

Pig Question Set: (./pig)

! To run, in Pig Grunt shell >> run ./pig/q1.pig 
! To run, in Pig Grunt shell >> run ./pig/q2.pig
  1. Top 10 Weather Conditions during Accidents in Massachusetts (MA)
  2. Cities in Massachusetts where accidents happen during snowy days (Replicated Inner Join)

bigdatafinalproject's People

Contributors

josephnp732 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

merla

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.