HBASE-10264 CompactionTool in mapred mode is missing classes in its classpath (Himanshu Vashishtha)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1555178 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ndimiduk 2014-01-03 18:11:41 +00:00
parent e47fa6826b
commit 063243c880
1 changed files with 6 additions and 0 deletions

View File

@ -354,6 +354,12 @@ public class CompactionTool extends Configured implements Tool {
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