From 3f2ddc2b1700964567ee6ec6b42b2ff8e219e76b Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 27 Oct 2011 19:13:44 +0000 Subject: [PATCH] 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 --- .../java/org/apache/hadoop/hbase/PerformanceEvaluation.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java b/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java index 3982effcd1d..ef47d0d5500 100644 --- a/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java +++ b/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java @@ -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); }