GithubHelp home page GithubHelp logo

baeeq / spark-yarn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tweetmagik/spark-yarn

0.0 3.0 0.0 80 KB

Launch Spark clusters on YARN

Home Page: www.spark-project.org

License: BSD 3-Clause "New" or "Revised" License

spark-yarn's Introduction

Spark-Yarn

This project launches Spark applications on YARN, the resource manager for the Hadoop MapReduce 2.0 project. You specify a JAR for the application, the locations where Mesos and Spark are installed on the cluster, and the number of slave resources to acquire, and spark-yarn will launch a cluster with the required resources and run your job.

Building

To build spark-yarn, you will need Maven 3 or higher. Then run:

mvn package

In addition, you must build Mesos and Spark on your cluster nodes. Please refer to https://github.com/mesos/mesos/wiki and https://github.com/mesos/spark/wiki for details.

Running

The main script to run the project is bin/client. Execute this without arguments to see a list of the available options. At the very least, you will need to pass the following options:

  • -slaves: number of slave nodes to acquire
  • -mesos_home: location where Mesos is installed on cluster nodes
  • -spark_home: location where Spark is installed on cluster nodes
  • -jar: JAR containing your code
  • -class: main class to execute from your JAR.

In addition, you should set the HADOOP_CONF_DIR environment variable to refer to your Hadoop/YARN installation's config directory.

Viewing Output From Your Job

spark-yarn places log files in the standard YARN log directory for applications. There will be multiple files with the standard output and error streams of various processes. While the application is running, you can view these logs by clicking the "container logs" links on the YARN web UI. After the application ends, the links no longer work, and you should look for the logs directly in your file system. By default they get placed in /tmp/logs.

spark-yarn's People

Contributors

mateiz avatar

Watchers

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