List of usage examples for org.apache.hadoop.util Tool Tool
Tool
From source file:org.apache.bigtop.bigpetstore.etl.PigCSVCleaner.java
License:Apache License
public static void main(final String[] args) throws Exception { System.out.println("Starting pig etl " + args.length); Configuration c = new Configuration(); int res = ToolRunner.run(c, new Tool() { Configuration conf;//from ww w. j a v a 2 s .c o m @Override public void setConf(Configuration conf) { this.conf = conf; } @Override public Configuration getConf() { return this.conf; } @Override public int run(String[] args) throws Exception { DeveloperTools.validate(args, "generated data directory", "pig output directory"); new PigCSVCleaner(new Path(args[0]), new Path(args[1]), ExecType.MAPREDUCE, files(args, 2)); return 0; } }, args); System.exit(res); }