package com.hadoop.learn.test; import org.apache.hadoop.util.ProgramDriver; /** * * @author yongboy * @time 2012-4-24 * @version 1.0 */ public class TestDriver { public static void main(String[] args) { int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("testcount", WordCountTest.class, "A test map/reduce program that counts the words in the input files."); pgd.driver(args); exitCode = 0; } catch (Throwable e) { e.printStackTrace(); } System.exit(exitCode); } }