From 578bd101a62c6fb8e400a4c73a0c484dae87b0a5 Mon Sep 17 00:00:00 2001 From: Mate Szalay-Beko Date: Mon, 16 Dec 2019 23:43:59 +0100 Subject: [PATCH] HADOOP-16765. Fix curator dependencies for gradle projects using hadoop-minicluster. (#1763) Gradle behaves differently than Maven when processing exclude rules through transitive dependencies. This causes gradle projects (e.g. in Kudu) that are using Hadoop MiniCluster to fail because different Guava version come to the classpath through Curator. In this fix we make sure that ZooKeeper, SLF4J and Gradle gets always excluded from Curator Client even if they would come through other Curator dependencies transitively. --- hadoop-project/pom.xml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index e469d6304e8..de03c667802 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -1387,6 +1387,20 @@ org.apache.curator curator-recipes ${curator.version} + + + org.apache.zookeeper + zookeeper + + + com.google.guava + guava + + + org.slf4j + slf4j-api + + org.apache.curator @@ -1411,6 +1425,20 @@ org.apache.curator curator-framework ${curator.version} + + + org.apache.zookeeper + zookeeper + + + com.google.guava + guava + + + org.slf4j + slf4j-api + + org.apache.curator