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:
Enis Soztutar 2013-02-26 23:54:29 +00:00
parent a07485a8d8
commit 7d12d2e19d
2 changed files with 9 additions and 2 deletions

View File

@ -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>

View File

@ -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(),