kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject [3/3] kudu git commit: kudu-hive: add provided scope dependency on hadoop-mapreduce-client-common
Date Wed, 18 Oct 2017 20:56:09 GMT
kudu-hive: add provided scope dependency on hadoop-mapreduce-client-common

This appears to be necessary to get the kudu-hive tests to run against
some versions of Hadoop, otherwise NoClassDefFound exceptions occur for
the following classes while attempting to create the Hive configuration
object:

- org.apache.hadoop.mapreduce.TaskAttemptContext
- org.apache.hadoop.mapred.MRVersion

I haven't untangled the chain of Hadoop modules and Maven dependencies
to figure out exactly why this occurs, but since the fix is harmless
enough I'm inclined to keep my sanity and let it lie.

Note: this isn't a problem with Gradle.

Change-Id: I62d62ae31ebd82a2fd39030bfa6201aef6ff82ff
Reviewed-on: http://gerrit.cloudera.org:8080/8316
Tested-by: Kudu Jenkins
Reviewed-by: Jean-Daniel Cryans <jdcryans@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/67382e9a
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/67382e9a
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/67382e9a

Branch: refs/heads/master
Commit: 67382e9a408086a9ad25598d4f0d68650c176ed1
Parents: 7a460f0
Author: Dan Burkert <danburkert@apache.org>
Authored: Wed Oct 18 10:20:34 2017 -0700
Committer: Jean-Daniel Cryans <jdcryans@apache.org>
Committed: Wed Oct 18 20:54:19 2017 +0000

----------------------------------------------------------------------
 java/kudu-hive/pom.xml | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/67382e9a/java/kudu-hive/pom.xml
----------------------------------------------------------------------
diff --git a/java/kudu-hive/pom.xml b/java/kudu-hive/pom.xml
index fa67977..d6e3aa7 100644
--- a/java/kudu-hive/pom.xml
+++ b/java/kudu-hive/pom.xml
@@ -64,6 +64,12 @@
             <version>${hadoop.version}</version>
             <scope>provided</scope>
         </dependency>
+        <dependency>
+            <groupId>org.apache.hadoop</groupId>
+            <artifactId>hadoop-mapreduce-client-common</artifactId>
+            <version>${hadoop.version}</version>
+            <scope>provided</scope>
+        </dependency>
 
         <dependency>
             <groupId>log4j</groupId>


Mime
View raw message