GithubHelp home page GithubHelp logo

cionitoiu / simple_yarn_app_skeleton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gpiskas/simple_yarn_app_skeleton

0.0 2.0 0.0 148 KB

Simple YARN App Skeleton, including a YARN Client, Application Master and Container.

License: GNU General Public License v2.0

Shell 4.37% Java 95.63%

simple_yarn_app_skeleton's Introduction

Simple YARN Application Skeleton

This repo contains a barebones implementation of a YARN app, including:

  • A YARN Client.
  • An Application Master.
  • A Container.
  • A Utils class needed for configurations.

Behavior:

  • This application launches the YARN Client,
  • which in turn launches the Application Master,
  • which in turn launches 3 Containers,
  • which in turn print "Hello World!".

Launch Script (./launch.sh):

The simple script included builds the required YARNAPP.jar that contain the four java classes, puts the jar in HDFS under /apps/YARNAPP.jar, executes the application in hadoop and then outputs its entire log from all components. Feel free to modify it to fit your needs.

Example Log Output:

Client: Initializing
Client: Submitting application_1426756669209_0005
Client: Finished application_1426756669209_0005 with state FINISHED

AppMaster: Initializing
AppMaster: Registered
AppMaster: Requesting 3 Containers
AppMaster: Unregistered

Container: Initializing
Hello World!
Container: Finalizing

Container: Initializing
Hello World!
Container: Finalizing

Container: Initializing
Hello World!
Container: Finalizing

Simple YARN Application Skeleton
(C) 2015 George Piskas, Philémon Favrod

simple_yarn_app_skeleton's People

Watchers

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