Created
April 26, 2012 09:55
-
-
Save yongboy/2498401 to your computer and use it in GitHub Desktop.
TestDriver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment