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:
parent
e47fa6826b
commit
063243c880
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue