GithubHelp home page GithubHelp logo

hartl3y94 / sample-spark-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spatten/sample-spark-project

0.0 0.0 0.0 20 KB

Sample Spark project with Scala and SBT

License: MIT License

Scala 100.00%

sample-spark-project's Introduction

Sample Spark Project

Sample Spark project that may be compiled into a JAR for running via spark-submit.

Dependencies

  • Spark 2.10.5
  • SBT 0.13.9

Both of these dependencies are available via Homebrew.

brew tap homebrew/versions
brew install scala210
brew install sbt

Building

To build a JAR for submission via spark-submit use the assembly SBT task.

sbt assembly

Helper Task

A custom task exists to both compile the JAR and submit it to the Spark cluster. It will need to be edited to point at your local spark-submit executable. This may be used within an IDE such as IntelliJ.

lazy val spark_run = taskKey[Unit]("Builds the assembly and ships it to the Spark Cluster")
spark_run := {
  ("/full/path/to/bin/spark_submit " + assembly.value) !
}

sample-spark-project's People

Contributors

bradfordcp 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.