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

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


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

commit 2c332de925ad3d1443997821212347ef500a9366
Author: Xiangying Meng <[email protected]>
AuthorDate: Wed Dec 13 20:46:11 2023 +0800

    [fix][sec] Exclude avro from hadoop-client (#21719)
    
    (cherry picked from commit 95b9072261ab8481c724325d9b0a6f836524b7b3)
---
 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 bd56c39867a..4a965f7ae6e 100644
--- a/pulsar-io/hdfs2/pom.xml
+++ b/pulsar-io/hdfs2/pom.xml
@@ -50,14 +50,18 @@
                <artifactId>hadoop-client</artifactId>
                <version>2.8.5</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 8f7127d27eb..3eaaeb8203a 100644
--- a/pulsar-io/hdfs3/pom.xml
+++ b/pulsar-io/hdfs3/pom.xml
@@ -62,6 +62,10 @@
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
           </exclusion>
+          <exclusion>
+            <groupId>org.apache.avro</groupId>
+            <artifactId>avro</artifactId>
+          </exclusion>
         </exclusions>
        </dependency>
 

Reply via email to