Example usage for org.apache.hadoop.mapreduce.v2.hs JobHistoryServer main

List of usage examples for org.apache.hadoop.mapreduce.v2.hs JobHistoryServer main

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce.v2.hs JobHistoryServer main.

Prototype

public static void main(String[] args) 

Source Link

Usage

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

License:Apache License

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

    new AosProcessLauncher() {
        @Override/*  w  w  w. j  a v  a2  s.com*/
        public void process() throws Exception {
            JobHistoryServer.main(new String[] {});
        }
    }.launch("MapReduceJobHistory");

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

}