Example usage for org.apache.hadoop.yarn.server.nodemanager NodeManager main

List of usage examples for org.apache.hadoop.yarn.server.nodemanager NodeManager main

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.server.nodemanager NodeManager main.

Prototype

public static void main(String[] args) throws IOException 

Source Link

Usage

From source file:io.aos.hadoop.YarnNodeManager.java

License:Apache License

public static void main(String... args) throws Exception {

    new AosProcessLauncher() {
        @Override/*from  w w  w.ja  v  a  2 s.c  o  m*/
        public void process() throws Exception {
            NodeManager.main(new String[] {});
        }
    }.launch("YarnNodeManager");

    while (true) {
        LOGGER.info("Sleeping...");
        TimeUnit.MINUTES.sleep(1);
    }

}