Giter Club home page Giter Club logo

narwhal's Introduction

Narwhal

Narwhal is a YARN application for Docker container orchestration for YARN.

Features

Roadmap

  • Simple short-lived Docker container scheduling
  • Retreive meta data of Docker container
  • Secured Docker container
  • Volume mount and port mapping of Docker container
  • Task re-run when failure
  • Application master fault tolerance
  • Client and AM RPC
  • Dynamically scale tasks
  • Remove appname submission to AM
  • Use MD5 hash to check if image has already been loaded
  • Support "YARN" containers

Setting up and running Narwhal

  1. A LinuxContainerExecutor enabled hadoop cluster
  2. Enable YARN Registry for the cluster
  3. Prepare your Docker image. It should have the same user (and uid) in it which is also used when run Narwhal
  4. Clone, build and run Narwhal with the Docker image
git clone https://github.com/intel-hadoop/Narwhal.git
cd Narwhal
mvn clean package -DskipTests
docker pull centos:latest
cat <<'EOF' > artifact.json
{
    'name': 'hello-docker',
    'cpus': 2.0,
    'mem': 32.0,
    'instances': 2,
    'cmd': 'echo \"hello docker\"',
    'engine': {
        'type': 'DOCKER',
        'image': 'centos',
        'localImage': true
    }
}
EOF
yarn jar target/narwhal-1.0-SNAPSHOT.jar run -configFile artifact.json -jar target/narwhal-1.0-SNAPSHOT.jar

Narwhal client

To list Docker container status of an applicatoin

yarn jar target/narwhal-1.0-SNAPSHOT.jar resolve -applicationId <applicationId>

To list all applications history

yarn jar target/narwhal-1.0-SNAPSHOT.jar registry

narwhal's People

Contributors

yeyuqiang avatar zyluo avatar

Watchers

 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.