Git Product home page Git Product logo

spark-x's Introduction

spark-x

CircleCI

Simple Spark project built in Scala

CI dashboard

https://circleci.com/gh/necosta/spark-x

To-Do

With source (data for January, which will be around 100+MB deflated): https://transtats.bts.gov/DL_SelectFields.asp?Table_ID=236&DB_Short_Name=On-Time

  1. Create the dataframe with joins with master (optimization using broadcasts)
  2. Based on the dataset find the Airports with the least delay (sorting and selecting the top)
  3. Multiple groupings like which Airline has most flights to New York (uses reduce and combine operators)
  4. Secondary sorts like which airlines arrive the worst on which airport and by what delay
  5. Custom partitions using airline Id (in combination with - d)
  6. Any other interesting insights

Pre-requisites

Source data

Available here: https://transtats.bts.gov/DL_SelectFields.asp?Table_ID=236&DB_Short_Name=On-Time

Select fields:

  • Time Period > Flight Date
  • Airline > AirlineID (L_AIRLINE_ID lookup)
  • Airline > FlightNum
  • Origin > OriginAirportID (L_AIRPORT_ID lookup)
  • Destination > DestAirportID (L_AIRPORT_ID lookup)
  • Destination > DestCityName
  • Departure Perf > DepDelay
  • Arrival Perf > ArrDelay
  • Cancellations and Diversions > Cancelled

ToDo: Automate import of base table from webpage

How to build Spark job

  • Build: sbt compile
  • Test: sbt test
  • Package: sbt package

How to run Spark job

  • Build image:
docker build --build-arg VERSION=x.y.z -t sparkx .

Note: Get version from version.sbt file

  • Run image:
docker run sparkx

spark-x's People

Contributors

necosta avatar

Watchers

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