GithubHelp home page GithubHelp logo

zixu4728 / chef-spark-jobserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spark-jobserver/chef-spark-jobserver

0.0 2.0 0.0 248 KB

Chef recipe for Spark JobServer

License: Apache License 2.0

Ruby 61.73% HTML 23.20% Shell 15.08%

chef-spark-jobserver's Introduction

spark-jobserver cookbook

Installs the Spark Jobserver.

Dev quickstart:

# minimal required configuration; these values have no defaults and must be provided
chef.json = {
  spark: {
    jobserver: {
      # path to your spark install
      spark_home: '/usr/local/spark',
      spark_conf_dir: '/usr/local/spark/conf',
      # you need to provide the jobserver jar; this gets downloaded, but can be a `file://` uri
      jar_url: 'https://domain.com/some/path/spark-job-server.jar'
    }
  }
}

include_recipe 'spark-jobserver::default'

To use the provided Vagrantfile to spin up a demo instance:

  1. Copy the Spark distribution binary into the repo root. By default this is assumed to be spark-1.1.0-bin-hadoop2.4.tgz. See below if you wish to use a different Spark distro.
  2. Copy the jobserver jar into the repo root. By default this is assumed to be spark-job-server.jar. Building the jobserver itself is easy: pushd .../spark-jobserver; sbt clean assembly.
  3. Spin up the Vagrant instance: vagrant up
  • If you want to use a different Spark distro, set the SPARK_DIST environment variable (without the extension): SPARK_DIST=spark-1.1.0-bin-cdh4 vagrant up
  1. Now you can browse the Jobserver UI at http://33.33.33.123:8090 and go through the jobserver examples.

Note that this repo assumes RVM; YMMV with other installations such as ChefDK. The Vagrant demo requires following plugins:

Supported Platforms

Chefspec tested on:

{
  'ubuntu' => [ '12.04', '13.04', '13.10', '14.04' ],
  'debian' => [ '6.0.5' ],
  'centos' => [ '5.8', '6.0', '6.3' ],
  'redhat' => [ '5.8', '6.3' ],
}

Confirmed to work on:

  • Ubuntu 12.04
  • Ubuntu 14.04

With Chef 11.8+

Attributes

See attributes for all options.

Usage

The only cookbook dependency is runit; java is assumed to be installed somehow.

Follow the appropriate guides for Spark standalone or Mesos deployment. The relevant attributes are:

  • node.spark.jobserver.master_type
  • node.spark.jobserver.master_url

spark-jobserver::default

Include spark-jobserver::default in your node's run_list:

{
  "run_list": [
    "recipe[spark-jobserver::default]"
  ]
}

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (i.e. add-new-recipe)
  3. Write your change
  4. Write tests for your change (if applicable)
  • At least a Chefspec proving the fix; Test Kitchen coming later
  1. Run the tests, ensuring they all pass
  2. Submit a Pull Request

License and Authors

Author:: Matt Chu ([email protected])

chef-spark-jobserver's People

Contributors

thmttch avatar velvia avatar

Watchers

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.