Example usage for org.apache.hadoop.yarn.server.resourcemanager ResourceManager main

List of usage examples for org.apache.hadoop.yarn.server.resourcemanager ResourceManager main

Introduction

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

Prototype

public static void main(String argv[]) 

Source Link

Usage

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

License:Apache License

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

    new AosProcessLauncher() {
        @Override//  www  . ja  v a2s.com
        public void process() throws Exception {
            ResourceManager.main(new String[] {});
        }
    }.launch("YarnResourceManager");

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

}