This is an automated email from the ASF dual-hosted git repository. joemcdonnell pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/impala.git
commit a1f4a849cf1c4f51e0acc737c7da166651645870 Author: Fredy Wijaya <fwij...@cloudera.com> AuthorDate: Mon May 13 14:42:08 2019 -0700 Exclude kafka dependency from ranger-plugins-audit This patch excludes kafka dependency from ranger-plugins-audit to avoid jax-rs version conflict due to kafka transitively pulling pulling an incompatible version of jax-rs dependency used in Impala. See RANGER-2426. I was able to find an issue by manually modifying the CLASSPATH to force jax-rs 2.1 (from Kafka) to be loaded first and saw a java.lang.NoClassDefFoundError: javax/ws/rs/core/Link$Builder. Testing: - After removing kafka dependency, I did not see any jersey-server 2.27 in the CLASSPATH and was able to start Impala with Ranger without any error. Change-Id: I4a01f34d078c50bc22fc67a67415a1e6e9c87151 Reviewed-on: http://gerrit.cloudera.org:8080/13322 Reviewed-by: Fredy Wijaya <fwij...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> --- fe/pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fe/pom.xml b/fe/pom.xml index 8827295..bdab1b7 100644 --- a/fe/pom.xml +++ b/fe/pom.xml @@ -125,6 +125,12 @@ under the License. <groupId>org.apache.ranger</groupId> <artifactId>ranger-plugins-audit</artifactId> <version>${ranger.version}</version> + <exclusions> + <exclusion> + <groupId>org.apache.kafka</groupId> + <artifactId>kafka_2.11</artifactId> + </exclusion> + </exclusions> </dependency> <!-- this is needed by ranger-plugins-audit --> <dependency>