This is an automated email from the ASF dual-hosted git repository.

awong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new 7ec2a0f  [subprocess] remove conflict Jersey dependencies
7ec2a0f is described below

commit 7ec2a0f7f0a9fc4147ac482b41b7ee26b924a2e6
Author: Hao Hao <[email protected]>
AuthorDate: Thu Mar 26 10:39:31 2020 -0700

    [subprocess] remove conflict Jersey dependencies
    
    In kudu-subprocess project, both hadoopCommon and rangerPlugin depend
    on different versions of Jersey, causing the following warning when
    running the ranger subprocess:
    
    "com.sun.jersey.api.client.ClientResponse getEntity
    SEVERE: A message body reader for Java class java.lang.String, and Java
    type class java.lang.String, and MIME media type application/octet-stream
    was not found"
    
    Also, certain Cloudera distributed rangerPlugin can depends on kafka
    which includes different versions of Jersey than the one used in
    rangerPlugin.
    
    This patch excludes the Jersey dependency in hadoopCommon and kafka
    dependecy in rangerPlugin.
    
    Change-Id: I2afc535e7c9cbed1ee65fb0d0c077a25d24327cc
    Reviewed-on: http://gerrit.cloudera.org:8080/15565
    Tested-by: Kudu Jenkins
    Reviewed-by: Attila Bukor <[email protected]>
---
 java/kudu-subprocess/build.gradle | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/java/kudu-subprocess/build.gradle 
b/java/kudu-subprocess/build.gradle
index 1e04918..eafaa83 100644
--- a/java/kudu-subprocess/build.gradle
+++ b/java/kudu-subprocess/build.gradle
@@ -19,10 +19,18 @@ apply from: "$rootDir/gradle/protobuf.gradle"
 apply from: "$rootDir/gradle/shadow.gradle"
 
 dependencies {
-  compile libs.hadoopCommon
+  compile(libs.hadoopCommon) {
+    // hadoopCommon and rangerPlugin use different versions of jersey.
+    exclude group: "com.sun.jersey"
+  }
   compile libs.protobufJava
   compile libs.protobufJavaUtil
-  compile libs.rangerPlugin
+
+  compile(libs.rangerPlugin) {
+    // rangerPlugin depends on kafka which includes different versions
+    // of jersey than rangerPlugin.
+    exclude group: "org.apache.kafka"
+  }
   compile libs.slf4jApi
 
   // Workaround for RANGER-2749. Remove once resolved.

Reply via email to