Git Product home page Git Product logo

spark-worldcup's Introduction

Spark World Cup Stats

logo

An Introduction to Developing with the Spark API.

We are going to use the supplied data sets to calculate some of the stats from the 2014 FIFA World Cup in Brazil.

There are 4 exercises to complete. The solutions only require a few lines so if you find yourself writing a lot of code then stop!

The tests are fully written. These tests start up Spark, load in the data (creating and RDD for you) and call the function to compute the results. Your objective is to implement the function and get the tests to pass...

All the Spark functions you will need are in the following docs:

Just think how you would solve it without Spark and find an equivalent function.

Setup

You can run with SBT directly from the command line. sbt test should give you the output of

[info] Run completed in 5 seconds, 108 milliseconds.
[info] Total number of tests run: 4
[info] Suites: completed 4, aborted 0
[info] Tests: succeeded 0, failed 4, canceled 0, ignored 0, pending 0
[info] *** 4 TESTS FAILED ***
[error] Failed: Total 4, Failed 4, Errors 0, Passed 0
[error] Failed tests:
[error] 	com.kduggan.spark.worldcup.Ex2TopClubSpec
[error] 	com.kduggan.spark.worldcup.Ex1PlayerCountSpec
[error] 	com.kduggan.spark.worldcup.Ex4EventsByCountrySpec
[error] 	com.kduggan.spark.worldcup.Ex3TopScorersSpec
[error] (test:test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 12 s, completed 19-Oct-2016 10:30:44

Alternatively you can import it into Intellij (the plugin is already configured in this project).

Any Eclipse people can go here.

spark-worldcup's People

Stargazers

 avatar

Watchers

Kevin Duggan 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.