Example usage for org.apache.hadoop.util ToolRunner run

List of usage examples for org.apache.hadoop.util ToolRunner run

Introduction

In this page you can find the example usage for org.apache.hadoop.util ToolRunner run.

Prototype

public static int run(Configuration conf, Tool tool, String[] args) throws Exception 

Source Link

Document

Runs the given Tool by Tool#run(String[]) , after parsing with the given generic arguments.

Usage

From source file:WordCountCounters.java

License:Apache License

public static void main(String[] args) throws Exception {
    // Let ToolRunner handle generic command-line options
    ToolRunner.run(new Configuration(), new WordCountCounters(), args);
    System.exit(0);/*from   ww  w .jav  a  2  s  . com*/
}

From source file:SBP.java

License:Apache License

public static void main(final String[] args) throws Exception {
    final int result = ToolRunner.run(new Configuration(), new SBP(), args);

    System.exit(result);/*from ww w  . jav  a 2 s  .  c o  m*/
}

From source file:PiEstimator.java

License:Apache License

/**
 * main method for running it as a stand alone command.
 */// ww  w  .j a  v a2 s.c o  m
public static void main(String[] argv) throws Exception {
    System.exit(ToolRunner.run(null, new PiEstimator(), argv));
}

From source file:First.java

License:Apache License

public static void main(String[] args) throws Exception {
    // Let ToolRunner handle generic command-line options
    ToolRunner.run(new Configuration(), new First(), args);
    System.exit(0);//from w w w  .j  a  v  a2s . c o  m
}

From source file:NgramMatrixBuilder.java

License:Apache License

public static void main(String[] args) throws Exception {
    int res = ToolRunner.run(new Configuration(), new NgramMatrixBuilder(), args);
    System.exit(res);/*from www .  j a  v a 2 s. c  o  m*/
}

From source file:BMTColumnLoader.java

License:Apache License

public static void main(String[] args) throws Exception {
    int res = ToolRunner.run(new Configuration(), new BMTColumnLoader(), args);
    System.exit(res);/*  ww  w  .j a v a  2  s.com*/
}

From source file:WordCount.java

License:Apache License

public static void main(String[] args) throws Exception {
    // Let ToolRunner handle generic command-line options
    ToolRunner.run(new Configuration(), new WordCount(), args);
    System.exit(0);/* w w  w. j av  a  2  s  .co m*/
}

From source file:LinkReverser.java

License:Apache License

public static void main(String[] args) throws Exception {
    int res = ToolRunner.run(new Configuration(), new LinkReverser(), args);
    System.exit(res);// www.j  a v a2  s.c o  m
}

From source file:SleepJob.java

License:Apache License

public static void main(String[] args) throws Exception {
    int res = ToolRunner.run(new Configuration(), new SleepJob(), args);
    System.exit(res);/*from  ww w. java  2s .  c  om*/
}

From source file:BMTTableLoader.java

License:Apache License

public static void main(String[] args) throws Exception {
    int res = ToolRunner.run(new Configuration(), new BMTTableLoader(), args);
    System.exit(res);// www.  j a  va 2s.c o m
}