You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by nd...@apache.org on 2014/01/03 19:15:34 UTC

svn commit: r1555183 - /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java

Author: ndimiduk
Date: Fri Jan  3 18:15:34 2014
New Revision: 1555183

URL: http://svn.apache.org/r1555183
Log:
HBASE-10264 CompactionTool in mapred mode is missing classes in its classpath (Himanshu Vashishtha)

Modified:
    hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java

Modified: hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java?rev=1555183&r1=1555182&r2=1555183&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java (original)
+++ hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java Fri Jan  3 18:15:34 2014
@@ -354,6 +354,12 @@ public class CompactionTool extends Conf
     job.setMapSpeculativeExecution(false);
     job.setNumReduceTasks(0);
 
+    // add dependencies (including HBase ones)
+    TableMapReduceUtil.addDependencyJars(job);
+    // This job instantiates HRegions, which requires the Counter class from the high_scale library
+    TableMapReduceUtil.addDependencyJars(job.getConfiguration(),
+      org.cliffc.high_scale_lib.Counter.class);
+
     Path stagingDir = JobUtil.getStagingDir(conf);
     try {
       // Create input file with the store dirs