HBASE-9687 ClassNotFoundException is thrown when ExportSnapshot runs against hadoop cluster where HBase is not installed on the same node as resourcemanager
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1527823 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4308ddce48
commit
5cc0fb1729
|
@ -45,7 +45,7 @@ import org.apache.hadoop.hbase.HConstants;
|
||||||
import org.apache.hadoop.hbase.io.HFileLink;
|
import org.apache.hadoop.hbase.io.HFileLink;
|
||||||
import org.apache.hadoop.hbase.io.HLogLink;
|
import org.apache.hadoop.hbase.io.HLogLink;
|
||||||
import org.apache.hadoop.hbase.mapreduce.JobUtil;
|
import org.apache.hadoop.hbase.mapreduce.JobUtil;
|
||||||
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
|
import org.apache.hadoop.hbase.mapreduce.TableMapReduceUtil;
|
||||||
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
|
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
|
||||||
import org.apache.hadoop.hbase.regionserver.StoreFileInfo;
|
import org.apache.hadoop.hbase.regionserver.StoreFileInfo;
|
||||||
import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;
|
import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;
|
||||||
|
@ -529,6 +529,7 @@ public final class ExportSnapshot extends Configured implements Tool {
|
||||||
Job job = new Job(conf);
|
Job job = new Job(conf);
|
||||||
job.setJobName("ExportSnapshot");
|
job.setJobName("ExportSnapshot");
|
||||||
job.setJarByClass(ExportSnapshot.class);
|
job.setJarByClass(ExportSnapshot.class);
|
||||||
|
TableMapReduceUtil.addDependencyJars(job);
|
||||||
job.setMapperClass(ExportMapper.class);
|
job.setMapperClass(ExportMapper.class);
|
||||||
job.setInputFormatClass(SequenceFileInputFormat.class);
|
job.setInputFormatClass(SequenceFileInputFormat.class);
|
||||||
job.setOutputFormatClass(NullOutputFormat.class);
|
job.setOutputFormatClass(NullOutputFormat.class);
|
||||||
|
|
Loading…
Reference in New Issue