Skip to content

Commit

Permalink
[HDFS-17382] Add Apache Log4j Extras Library to Hadoop 3.3 for Enhanc…
Browse files Browse the repository at this point in the history
…ed Log Rolling Capabilities
  • Loading branch information
woosukro committed Feb 16, 2024
1 parent 4211098 commit 5a7bd7c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions hadoop-client-modules/hadoop-client-minicluster/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@
<groupId>org.apache.hadoop.thirdparty</groupId>
<artifactId>hadoop-shaded-guava</artifactId>
</exclusion>
<exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>apache-log4j-extras</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Add optional runtime dependency on the in-development timeline server module
Expand Down
11 changes: 11 additions & 0 deletions hadoop-hdfs-project/hadoop-hdfs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
</properties>

<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>apache-log4j-extras</artifactId>
<version>${log4j-extras.version}</version>
<exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-auth</artifactId>
Expand Down
3 changes: 2 additions & 1 deletion hadoop-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
<!-- SLF4J/LOG4J version -->
<slf4j.version>1.7.36</slf4j.version>
<reload4j.version>1.2.22</reload4j.version>

<log4j-extras.version>1.2.17</log4j-extras.version>

<!-- com.google.re2j version -->
<re2j.version>1.1</re2j.version>

Expand Down

0 comments on commit 5a7bd7c

Please # to comment.