Example usage for org.apache.hadoop.util ExitUtil terminate

List of usage examples for org.apache.hadoop.util ExitUtil terminate

Introduction

In this page you can find the example usage for org.apache.hadoop.util ExitUtil terminate.

Prototype

public static void terminate(int status) throws ExitException 

Source Link

Document

Like #terminate(int,Throwable) without a message.

Usage

From source file:it.crs4.pydoop.mapreduce.pipes.CommandLineParser.java

License:Apache License

public static void main(String[] args) throws Exception {
    int exitCode = new Submitter().run(args);
    ExitUtil.terminate(exitCode);
}

From source file:it.crs4.pydoop.pipes.Submitter.java

License:Apache License

/**
 * Submit a pipes job based on the command line arguments.
 * @param args/*from  ww  w  .j  a v  a2  s. c  o m*/
 */
public static void main(String[] args) throws Exception {
    int exitCode = new Submitter().run(args);
    ExitUtil.terminate(exitCode);
}

From source file:org.apache.slider.core.main.ServiceLauncher.java

License:Apache License

/**
 * Exit with a printed message/*from   w  w w. j  av  a2  s  .c o m*/
 * @param status status code
 * @param message message
 */
private static void exitWithMessage(int status, String message) {
    System.err.println(message);
    ExitUtil.terminate(status);
}