Package mapreduce

Source Code of mapreduce.Driver

package mapreduce;

import org.apache.hadoop.util.ProgramDriver;

/**
* Offers choices for included MapReduce jobs.
*/
public class Driver {

  /**
   * Main entry point for jar file.
   *
   * @param args  The command line parameters.
   * @throws Throwable When the selection fails.
   */
  public static void main(String[] args) throws Throwable {
    ProgramDriver pgd = new ProgramDriver();
    pgd.addClass(ImportFromFile.NAME, ImportFromFile.class,
      "Import from file");
    pgd.addClass(AnalyzeData.NAME, AnalyzeData.class,
      "Analyze imported JSON");
    pgd.addClass(ParseJson.NAME, ParseJson.class,
      "Parse JSON into columns");
    pgd.addClass(ParseJson2.NAME, ParseJson2.class,
      "Parse JSON into columns (map only)");
    pgd.addClass(ParseJsonMulti.NAME, ParseJsonMulti.class,
      "Parse JSON into multiple tables");
    pgd.driver(args);
  }
}
TOP

Related Classes of mapreduce.Driver

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.