HBASE-7934 TableMapReduceUtil doesn't include all dependency jars in new modular build (Nick Dimiduk)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1450541 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a07485a8d8
commit
7d12d2e19d
|
@ -276,8 +276,7 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.hbase</groupId>
|
||||
<artifactId>hbase-prefix-tree</artifactId>
|
||||
<!-- unfortunately, runtime scope causes eclipse to put it in the compile time classpath -->
|
||||
<scope>runtime</scope>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.hbase</groupId>
|
||||
|
|
|
@ -503,8 +503,16 @@ public class TableMapReduceUtil {
|
|||
public static void addDependencyJars(Job job) throws IOException {
|
||||
try {
|
||||
addDependencyJars(job.getConfiguration(),
|
||||
// explicitly pull a class from each module
|
||||
org.apache.hadoop.hbase.HConstants.class, // hbase-common
|
||||
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.class, // hbase-protocol
|
||||
org.apache.hadoop.hbase.client.Put.class, // hbase-client
|
||||
org.apache.hbase.codec.prefixtree.PrefixTreeCodec.class, // hbase-prefix-tree
|
||||
org.apache.hadoop.hbase.CompatibilityFactory.class, // hbase-hadoop-compat
|
||||
// pull necessary dependencies
|
||||
org.apache.zookeeper.ZooKeeper.class,
|
||||
com.google.protobuf.Message.class,
|
||||
// pull job classes
|
||||
job.getMapOutputKeyClass(),
|
||||
job.getMapOutputValueClass(),
|
||||
job.getInputFormatClass(),
|
||||
|
|
Loading…
Reference in New Issue