HBASE-4688 Make it so can run PE w/o having to put hbase jar on CLASSPATH

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1189945 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-10-27 19:13:44 +00:00
parent 9f2204fbe3
commit 3f2ddc2b17
1 changed files with 3 additions and 0 deletions

View File

@ -570,6 +570,9 @@ public class PerformanceEvaluation {
TextOutputFormat.setOutputPath(job, new Path(inputDir,"outputs"));
TableMapReduceUtil.addDependencyJars(job);
// Add a Class from the hbase.jar so it gets registered too.
TableMapReduceUtil.addDependencyJars(job.getConfiguration(),
org.apache.hadoop.hbase.util.Bytes.class);
job.waitForCompletion(true);
}