You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ra...@apache.org on 2026/09/11 08:56:05 UTC

(ranger) 15/34: RANGER-5661:Fix Kafka plugin packaging for broker-delegate classloading on Kafka 3.9+ (#1040)

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

ramackri pushed a commit to branch backport-audit-spiffe-2.10
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit 03b5ef7a9d3f4c718e5bd0b7e79fd5023b8f40ce
Author: Ramachandran Krishnan <ra...@gmail.com>
AuthorDate: Fri Jul 3 21:21:52 2026 +0530

    RANGER-5661:Fix Kafka plugin packaging for broker-delegate classloading on Kafka 3.9+ (#1040)
    
    Co-authored-by: ramk <ra...@cloudera.com>
    (cherry picked from commit 6d9b1b2cf2e9a84eb4eebb2fd71c8672c333e69b)
---
 distro/src/main/assembly/plugin-kafka.xml | 19 +++++++++++++++++--
 plugin-kafka/template/configuration.xml   | 20 ++++++++++++++++++++
 2 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/distro/src/main/assembly/plugin-kafka.xml b/distro/src/main/assembly/plugin-kafka.xml
index e06319ad4..60e766863 100644
--- a/distro/src/main/assembly/plugin-kafka.xml
+++ b/distro/src/main/assembly/plugin-kafka.xml
@@ -78,9 +78,24 @@
 					<include>org.apache.solr:solr-solrj:jar:${solr.version}</include>
 					<include>org.codehaus.woodstox:stax2-api</include>
 					<include>org.eclipse.jetty:jetty-client:jar:${jetty-client.version}</include>
-					<include>org.glassfish.jersey.ext:jersey-entity-filtering:jar:${jersey-client.version}</include>
-					<include>org.glassfish.jersey.media:jersey-media-json-jackson:jar:${jersey-client.version}</include>
 				</includes>
+                <excludes>
+					<exclude>com.fasterxml.jackson.core:*</exclude>
+					<exclude>com.fasterxml.jackson.jaxrs:*</exclude>
+					<exclude>com.fasterxml.jackson.module:*</exclude>
+					<exclude>com.fasterxml.jackson.dataformat:*</exclude>
+					<exclude>org.apache.kafka:kafka-clients</exclude>
+					<exclude>org.glassfish.jersey.core:*</exclude>
+					<exclude>org.glassfish.jersey.ext:*</exclude>
+					<exclude>org.glassfish.jersey.inject:*</exclude>
+					<exclude>org.glassfish.jersey.media:*</exclude>
+					<exclude>org.glassfish.hk2:*</exclude>
+					<exclude>javax.ws.rs:javax.ws.rs-api</exclude>
+					<exclude>jakarta.ws.rs:jakarta.ws.rs-api</exclude>
+					<exclude>org.slf4j:*</exclude>
+					<exclude>org.apache.logging.log4j:*</exclude>
+					<exclude>ch.qos.reload4j:*</exclude>
+				</excludes>
 			</binaries>
 		</moduleSet>
 
diff --git a/plugin-kafka/template/configuration.xml b/plugin-kafka/template/configuration.xml
new file mode 100644
index 000000000..bdb012589
--- /dev/null
+++ b/plugin-kafka/template/configuration.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<configuration>
+</configuration>