Skip to content

Commit d709000

Browse files
iwasakimsjojochuang
authored andcommitted
HADOOP-18088. Replace log4j 1.x with reload4j. (#4052)
Co-authored-by: Wei-Chiu Chuang <[email protected]>
1 parent b43333f commit d709000

File tree

37 files changed

+195
-94
lines changed

37 files changed

+195
-94
lines changed

LICENSE-binary

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ License Version 2.0:
208208
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/checker/AbstractFuture.java
209209
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/checker/TimeoutFuture.java
210210

211+
ch.qos.reload4j:reload4j:1.2.18.3
211212
com.aliyun:aliyun-java-sdk-core:3.4.0
212213
com.aliyun:aliyun-java-sdk-ecs:4.2.0
213214
com.aliyun:aliyun-java-sdk-ram:3.0.0
@@ -273,7 +274,6 @@ io.reactivex:rxjava-string:1.1.1
273274
io.reactivex:rxnetty:0.4.20
274275
io.swagger:swagger-annotations:1.5.4
275276
javax.inject:javax.inject:1
276-
log4j:log4j:1.2.17
277277
net.java.dev.jna:jna:5.2.0
278278
net.minidev:accessors-smart:2.4.7
279279
net.minidev:json-smart:2.4.7
@@ -436,9 +436,10 @@ org.codehaus.mojo:animal-sniffer-annotations:1.17
436436
org.jruby.jcodings:jcodings:1.0.13
437437
org.jruby.joni:joni:2.1.2
438438
org.ojalgo:ojalgo:43.0
439-
org.slf4j:jul-to-slf4j:1.7.30
440-
org.slf4j:slf4j-api:1.7.30
441-
org.slf4j:slf4j-log4j12:1.7.30
439+
org.slf4j:jcl-over-slf4j:1.7.35
440+
org.slf4j:jul-to-slf4j:1.7.35
441+
org.slf4j:slf4j-api:1.7.35
442+
org.slf4j:slf4j-reload4j:1.7.35
442443

443444

444445
CDDL 1.1 + GPLv2 with classpath exception

hadoop-assemblies/src/main/resources/assemblies/hadoop-dynamometer.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<excludes>
6767
<!-- use slf4j from common to avoid multiple binding warnings -->
6868
<exclude>org.slf4j:slf4j-api</exclude>
69-
<exclude>org.slf4j:slf4j-log4j12</exclude>
69+
<exclude>org.slf4j:slf4j-reload4j</exclude>
7070
</excludes>
7171
</dependencySet>
7272
</dependencySets>

hadoop-assemblies/src/main/resources/assemblies/hadoop-hdfs-nfs-dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<exclude>org.apache.hadoop:hadoop-hdfs</exclude>
4141
<!-- use slf4j from common to avoid multiple binding warnings -->
4242
<exclude>org.slf4j:slf4j-api</exclude>
43-
<exclude>org.slf4j:slf4j-log4j12</exclude>
43+
<exclude>org.slf4j:slf4j-reload4j</exclude>
4444
<exclude>org.hsqldb:hsqldb</exclude>
4545
</excludes>
4646
</dependencySet>

hadoop-assemblies/src/main/resources/assemblies/hadoop-httpfs-dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<exclude>org.apache.hadoop:hadoop-hdfs</exclude>
7070
<!-- use slf4j from common to avoid multiple binding warnings -->
7171
<exclude>org.slf4j:slf4j-api</exclude>
72-
<exclude>org.slf4j:slf4j-log4j12</exclude>
72+
<exclude>org.slf4j:slf4j-reload4j</exclude>
7373
<exclude>org.hsqldb:hsqldb</exclude>
7474
</excludes>
7575
</dependencySet>

hadoop-assemblies/src/main/resources/assemblies/hadoop-kms-dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<exclude>org.apache.hadoop:hadoop-hdfs</exclude>
7070
<!-- use slf4j from common to avoid multiple binding warnings -->
7171
<exclude>org.slf4j:slf4j-api</exclude>
72-
<exclude>org.slf4j:slf4j-log4j12</exclude>
72+
<exclude>org.slf4j:slf4j-reload4j</exclude>
7373
<exclude>org.hsqldb:hsqldb</exclude>
7474
</excludes>
7575
</dependencySet>

hadoop-assemblies/src/main/resources/assemblies/hadoop-mapreduce-dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
<exclude>org.apache.hadoop:hadoop-hdfs</exclude>
180180
<!-- use slf4j from common to avoid multiple binding warnings -->
181181
<exclude>org.slf4j:slf4j-api</exclude>
182-
<exclude>org.slf4j:slf4j-log4j12</exclude>
182+
<exclude>org.slf4j:slf4j-reload4j</exclude>
183183
<exclude>org.hsqldb:hsqldb</exclude>
184184
<exclude>jdiff:jdiff:jar</exclude>
185185
</excludes>

hadoop-assemblies/src/main/resources/assemblies/hadoop-nfs-dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<exclude>org.apache.hadoop:hadoop-hdfs</exclude>
4141
<!-- use slf4j from common to avoid multiple binding warnings -->
4242
<exclude>org.slf4j:slf4j-api</exclude>
43-
<exclude>org.slf4j:slf4j-log4j12</exclude>
43+
<exclude>org.slf4j:slf4j-reload4j</exclude>
4444
<exclude>org.hsqldb:hsqldb</exclude>
4545
</excludes>
4646
</dependencySet>

hadoop-assemblies/src/main/resources/assemblies/hadoop-tools.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
<exclude>org.apache.hadoop:hadoop-pipes</exclude>
215215
<!-- use slf4j from common to avoid multiple binding warnings -->
216216
<exclude>org.slf4j:slf4j-api</exclude>
217-
<exclude>org.slf4j:slf4j-log4j12</exclude>
217+
<exclude>org.slf4j:slf4j-reload4j</exclude>
218218
</excludes>
219219
</dependencySet>
220220
</dependencySets>

hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
<exclude>org.apache.hadoop:*</exclude>
310310
<!-- use slf4j from common to avoid multiple binding warnings -->
311311
<exclude>org.slf4j:slf4j-api</exclude>
312-
<exclude>org.slf4j:slf4j-log4j12</exclude>
312+
<exclude>org.slf4j:slf4j-reload4j</exclude>
313313
<exclude>org.hsqldb:hsqldb</exclude>
314314
</excludes>
315315
</dependencySet>

hadoop-client-modules/hadoop-client-check-invariants/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
<exclude>org.slf4j:slf4j-api</exclude>
8585
<!-- Leave commons-logging unshaded so downstream users can configure logging. -->
8686
<exclude>commons-logging:commons-logging</exclude>
87-
<!-- Leave log4j unshaded so downstream users can configure logging. -->
88-
<exclude>log4j:log4j</exclude>
87+
<!-- Leave reload4j unshaded so downstream users can configure logging. -->
88+
<exclude>ch.qos.reload4j:reload4j</exclude>
8989
<!-- Leave javax annotations we need exposed -->
9090
<exclude>com.google.code.findbugs:jsr305</exclude>
9191
<!-- Leave bouncycastle unshaded because it's signed with a special Oracle certificate so it can be a custom JCE security provider -->

0 commit comments

Comments
 (0)