Coder Social home page Coder Social logo

spark-intro's Introduction

Intro to Spark

Into to exploring data and extracting useful information using [Apache Spark)(http://spark.apache.org). The code was presented at the Scala User Group Cologne, slides are here.

There are several jobs provided that you can run for each topic. Build the JAR using sbt ";clean;assembly". Run it on Spark using spark-submit --master <master> --class <f.q.ClassName> target/scala-2.10/spark-demo-assembly-1.0.jar.

For interactive exploration, you can use spark-shell. When you run it, it already provides a SparkContext called sc.

If you are using an IDE like IntelliJ or Eclipse, you should try out their worksheets or Scala console. When you are starting a SparkContext, pass the master explicitly, e.g.: val sc = new SparkContext(master = "<master>", appName = "Demo").

Hint: You can easily start any job or shell by using the Spark local mode, e.g. spark-shell --master local[*].

Google Web Graph

GitHub Commits

  1. Obtain an OAuth key on GitHub (Settings > Applications > Personal access tokens > Generate)
  2. Execute download_github.sh
  3. Execute ProcessGitHubData.scala -> the files should be in src/main/resources/github, one commit per line

Now play around with GitHubSql.scala.

Audioscrobbler

spark-intro's People

Contributors

mariussoutier avatar

Watchers

Florian Witteler avatar 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.