You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2024/01/16 08:11:34 UTC

(pulsar) branch branch-3.1 updated: [fix][sec] Exclude avro from hadoop-client (#21719)

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

technoboy pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 2c383a16e2a [fix][sec] Exclude avro from hadoop-client (#21719)
2c383a16e2a is described below

commit 2c383a16e2a7d313cb9fcd81ed9ce90106a5722e
Author: Xiangying Meng <55...@users.noreply.github.com>
AuthorDate: Wed Dec 13 20:46:11 2023 +0800

    [fix][sec] Exclude avro from hadoop-client (#21719)
---
 pulsar-io/hdfs2/pom.xml | 20 ++++++++++++--------
 pulsar-io/hdfs3/pom.xml |  4 ++++
 2 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/pulsar-io/hdfs2/pom.xml b/pulsar-io/hdfs2/pom.xml
index 082b6fbc4bf..c51e13321b5 100644
--- a/pulsar-io/hdfs2/pom.xml
+++ b/pulsar-io/hdfs2/pom.xml
@@ -55,14 +55,18 @@
   		<artifactId>hadoop-client</artifactId>
   		<version>${hadoop2.version}</version>
         <exclusions>
-            <exclusion>
-                <groupId>log4j</groupId>
-                <artifactId>log4j</artifactId>
-            </exclusion>
-            <exclusion>
-                <groupId>org.slf4j</groupId>
-                <artifactId>slf4j-log4j12</artifactId>
-            </exclusion>
+          <exclusion>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+          </exclusion>
+          <exclusion>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-log4j12</artifactId>
+          </exclusion>
+          <exclusion>
+            <groupId>org.apache.avro</groupId>
+            <artifactId>avro</artifactId>
+          </exclusion>
         </exclusions>
   	</dependency>
     <dependency>
diff --git a/pulsar-io/hdfs3/pom.xml b/pulsar-io/hdfs3/pom.xml
index e9a1adb7e4c..90d65f9eac1 100644
--- a/pulsar-io/hdfs3/pom.xml
+++ b/pulsar-io/hdfs3/pom.xml
@@ -67,6 +67,10 @@
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
           </exclusion>
+          <exclusion>
+            <groupId>org.apache.avro</groupId>
+            <artifactId>avro</artifactId>
+          </exclusion>
         </exclusions>
   	</dependency>