SQOOP-3398: Tests using HiveMiniCluster can be unstable on some platforms
authorBoglarka Egyed <bogi@apache.org>
Wed, 24 Oct 2018 15:18:57 +0000 (17:18 +0200)
committerBoglarka Egyed <bogi@apache.org>
Wed, 24 Oct 2018 15:18:57 +0000 (17:18 +0200)
(Szabolcs Vasas via Boglarka Egyed)

build.gradle
ivy.xml

index 2340bce..2014b5c 100644 (file)
@@ -91,10 +91,18 @@ def sqoopThirdPartyLib = System.getProperty("sqoop.thirdparty.lib.dir")
 dependencies {
     if (sqoopThirdPartyLib != null) runtime fileTree(dir: sqoopThirdPartyLib, include: '*.jar')
     compile group: 'org.apache.hadoop', name: 'hadoop-aws', version: hadoopVersion
-    compile group: 'org.apache.hadoop', name: 'hadoop-common', version: hadoopVersion
-    compile group: 'org.apache.hadoop', name: 'hadoop-hdfs', version: hadoopVersion
-    compile group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-common', version: hadoopVersion
-    compile group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-core', version: hadoopVersion
+    compile (group: 'org.apache.hadoop', name: 'hadoop-common', version: hadoopVersion) {
+        exclude group: "asm", module: "asm"
+    }
+    compile (group: 'org.apache.hadoop', name: 'hadoop-hdfs', version: hadoopVersion) {
+        exclude group: "asm", module: "asm"
+    }
+    compile (group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-common', version: hadoopVersion) {
+        exclude group: "asm", module: "asm"
+    }
+    compile (group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-core', version: hadoopVersion) {
+        exclude group: "asm", module: "asm"
+    }
     compile group: 'org.apache.hbase', name: 'hbase-hadoop-compat', version: hbaseVersion
 
     aopCompile group: 'org.aspectj', name: 'aspectjtools', version: aspectjVersion
diff --git a/ivy.xml b/ivy.xml
index 6805fc3..23a267d 100644 (file)
--- a/ivy.xml
+++ b/ivy.xml
@@ -66,16 +66,22 @@ under the License.
       rev="${hadoop.version}" conf="common->default">
       <artifact name="hadoop-common" type="jar" />
       <artifact name="hadoop-common" type="jar" m:classifier="tests"/>
+      <exclude org="asm" module="asm" />
     </dependency>
     <dependency org="org.apache.hadoop" name="hadoop-hdfs"
       rev="${hadoop.version}" conf="common->default">
       <artifact name="hadoop-hdfs" type="jar" />
       <artifact name="hadoop-hdfs" type="jar" m:classifier="tests"/>
+      <exclude org="asm" module="asm" />
     </dependency>
     <dependency org="org.apache.hadoop" name="hadoop-mapreduce-client-common"
-      rev="${hadoop.version}" conf="common->default"/>
+      rev="${hadoop.version}" conf="common->default">
+      <exclude org="asm" module="asm" />
+    </dependency>
     <dependency org="org.apache.hadoop" name="hadoop-mapreduce-client-core"
-      rev="${hadoop.version}" conf="common->default"/>
+      rev="${hadoop.version}" conf="common->default">
+      <exclude org="asm" module="asm" />
+    </dependency>
     <dependency org="org.apache.hadoop" name="hadoop-aws"
                 rev="${hadoop.version}" conf="common->default"/>
     <dependency org="org.aspectj" name="aspectjtools" rev="${aspectj.version}"
@@ -202,6 +208,7 @@ under the License.
 
     <dependency org="org.apache.hive" name="hive-jdbc" rev="${hcatalog.version}" conf="common->default" >
       <exclude org="com.twitter" module="parquet-hadoop-bundle"/>
+      <exclude org="asm" module="asm" />
     </dependency>
 
     <dependency org="org.apache.hive.hcatalog" name="hive-hcatalog-core"