Skip to content

Commit 1c5b23b

Browse files
committed
[HDFS-17382] Add Apache Log4j Extras Library to Hadoop 3.3 for Enhanced Log Rolling Capabilities
1 parent 4211098 commit 1c5b23b

File tree

3 files changed

+17
-1
lines changed
  • hadoop-client-modules/hadoop-client-minicluster
  • hadoop-hdfs-project/hadoop-hdfs
  • hadoop-project

3 files changed

+17
-1
lines changed

hadoop-client-modules/hadoop-client-minicluster/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,10 @@
336336
<groupId>org.apache.hadoop.thirdparty</groupId>
337337
<artifactId>hadoop-shaded-guava</artifactId>
338338
</exclusion>
339+
<exclusion>
340+
<groupId>log4j</groupId>
341+
<artifactId>apache-log4j-extras</artifactId>
342+
</exclusion>
339343
</exclusions>
340344
</dependency>
341345
<!-- Add optional runtime dependency on the in-development timeline server module

hadoop-hdfs-project/hadoop-hdfs/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
3535
</properties>
3636

3737
<dependencies>
38+
<dependency>
39+
<groupId>log4j</groupId>
40+
<artifactId>apache-log4j-extras</artifactId>
41+
<version>${log4j-extras.version}</version>
42+
<exclusions>
43+
<exclusion>
44+
<groupId>log4j</groupId>
45+
<artifactId>log4j</artifactId>
46+
</exclusion>
47+
</exclusions>
48+
</dependency>
3849
<dependency>
3950
<groupId>org.apache.hadoop</groupId>
4051
<artifactId>hadoop-auth</artifactId>

hadoop-project/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
<!-- SLF4J/LOG4J version -->
8383
<slf4j.version>1.7.36</slf4j.version>
8484
<reload4j.version>1.2.22</reload4j.version>
85-
85+
<log4j-extras.version>1.2.17</log4j-extras.version>
86+
8687
<!-- com.google.re2j version -->
8788
<re2j.version>1.1</re2j.version>
8889

0 commit comments

Comments
 (0)