List of usage examples for org.apache.hadoop.mapred.lib.aggregate ValueAggregatorJob createValueAggregatorJob
public static JobConf createValueAggregatorJob(String args[], Class<? extends ValueAggregatorDescriptor>[] descriptors, Class<?> caller) throws IOException
From source file:com.github.gaoyangthu.demo.mapred.AggregateWordCount.java
License:Apache License
/** * The main driver for word count map/reduce program. Invoke this method to * submit the map/reduce job./* w w w . j av a 2 s . com*/ * * @throws java.io.IOException * When there is communication problems with the job tracker. */ @SuppressWarnings("unchecked") public static void main(String[] args) throws IOException { JobConf conf = ValueAggregatorJob.createValueAggregatorJob(args, new Class[] { WordCountPlugInClass.class }, AggregateWordCount.class); JobClient.runJob(conf); }
From source file:com.github.gaoyangthu.demo.mapred.AggregateWordHistogram.java
License:Apache License
/** * The main driver for word count map/reduce program. Invoke this method to * submit the map/reduce job.//ww w. j av a 2 s .co m * * @throws java.io.IOException * When there is communication problems with the job tracker. */ @SuppressWarnings("unchecked") public static void main(String[] args) throws IOException { JobConf conf = ValueAggregatorJob.createValueAggregatorJob(args, new Class[] { AggregateWordHistogramPlugin.class }, AggregateWordHistogram.class); JobClient.runJob(conf); }