You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "steveloughran (via GitHub)" <gi...@apache.org> on 2024/02/12 16:44:29 UTC

[PR] HADOOP-18088. Replace log4j 1.x with reload4j. (#4052) [hadoop]

steveloughran opened a new pull request, #6547:
URL: https://github.com/apache/hadoop/pull/6547

   
   Cherrypick of two patches from branch-3.3, as the 3.4/trunk branches are still on log4j 1.x
   
   HADOOP-18088. Replace log4j 1.x with reload4j. (#4052)
   HADOOP-18354. Upgrade reload4j to 1.22.2 due to XXE vulnerability (#4635 
   
   Compilation works; lets see what yetus says.
   
   I'm also doing local release build to make sure there are no log4j 2 artifacts being pulled in as part of dependencies -looks like mockito-core and cosmos-db pull them in somehow
   
   
   ### For code changes:
   
   - [X] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
   - [X] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [X] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, `NOTICE-binary` files?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-18088. Replace log4j 1.x with reload4j. (#4052) [hadoop]

Posted by "steveloughran (via GitHub)" <gi...@apache.org>.
steveloughran commented on PR #6547:
URL: https://github.com/apache/hadoop/pull/6547#issuecomment-1941502210

   Incidentally, as this is a backport I don't need a vote from anyone but myself :-)
   
   just making sure it is good


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-18088. Replace log4j 1.x with reload4j. (#4052) [hadoop]

Posted by "steveloughran (via GitHub)" <gi...@apache.org>.
steveloughran commented on code in PR #6547:
URL: https://github.com/apache/hadoop/pull/6547#discussion_r1488049327


##########
LICENSE-binary:
##########
@@ -489,11 +489,10 @@ org.checkerframework:checker-qual:2.5.2
 org.codehaus.mojo:animal-sniffer-annotations:1.21
 org.jruby.jcodings:jcodings:1.0.13
 org.jruby.joni:joni:2.1.2
-org.slf4j:jul-to-slf4j:jar:1.7.25
-org.ojalgo:ojalgo:43.0:compile
-org.slf4j:jul-to-slf4j:1.7.25
-org.slf4j:slf4j-api:1.7.25
-org.slf4j:slf4j-log4j12:1.7.25
+org.ojalgo:ojalgo:43.0
+org.slf4j:jul-to-slf4j:1.7.35
+org.slf4j:slf4j-api:1.7.35
+org.slf4j:slf4j-reload4j:1.7.35

Review Comment:
   well spotted! i just pulled in the branch-3.3 license changes; looks like it is out of date there!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-18088. Replace log4j 1.x with reload4j. (#4052) [hadoop]

Posted by "iwasakims (via GitHub)" <gi...@apache.org>.
iwasakims commented on code in PR #6547:
URL: https://github.com/apache/hadoop/pull/6547#discussion_r1488029533


##########
LICENSE-binary:
##########
@@ -489,11 +489,10 @@ org.checkerframework:checker-qual:2.5.2
 org.codehaus.mojo:animal-sniffer-annotations:1.21
 org.jruby.jcodings:jcodings:1.0.13
 org.jruby.joni:joni:2.1.2
-org.slf4j:jul-to-slf4j:jar:1.7.25
-org.ojalgo:ojalgo:43.0:compile
-org.slf4j:jul-to-slf4j:1.7.25
-org.slf4j:slf4j-api:1.7.25
-org.slf4j:slf4j-log4j12:1.7.25
+org.ojalgo:ojalgo:43.0
+org.slf4j:jul-to-slf4j:1.7.35
+org.slf4j:slf4j-api:1.7.35
+org.slf4j:slf4j-reload4j:1.7.35

Review Comment:
   should be 1.7.36 instead of 1.7.35? @steveloughran 
   
   ```
   $ find hadoop-dist/target/hadoop-3.5.0-SNAPSHOT -name '*.jar' | grep slf4j
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/common/lib/slf4j-api-1.7.36.jar
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/common/lib/jul-to-slf4j-1.7.36.jar
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-18088. Replace log4j 1.x with reload4j. (#4052) [hadoop]

Posted by "steveloughran (via GitHub)" <gi...@apache.org>.
steveloughran commented on PR #6547:
URL: https://github.com/apache/hadoop/pull/6547#issuecomment-1941110038

   full clean build with this and there are no log4j jars on the classpath
   ```
   > find hadoop-dist/target/hadoop-3.5.0-SNAPSHOT -print | grep log
   
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/libexec/tools/hadoop-archive-logs.sh
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/libexec/shellprofile.d/hadoop-archive-logs.sh
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/etc/hadoop/httpfs-log4j.properties
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/etc/hadoop/kms-log4j.properties
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/etc/hadoop/yarnservice-log4j.properties
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/etc/hadoop/log4j.properties
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/tools/lib/hadoop-archive-logs-3.5.0-SNAPSHOT.jar
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/tools/sources/hadoop-archive-logs-3.5.0-SNAPSHOT-test-sources.jar
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/tools/sources/hadoop-archive-logs-3.5.0-SNAPSHOT-sources.jar
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/tools/sls/sample-conf/log4j.properties
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/yarn/yarn-service-examples/appcatalog
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/yarn/yarn-service-examples/appcatalog/appcatalog.json
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/yarn/hadoop-yarn-applications-catalog-webapp-3.5.0-SNAPSHOT.war
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/common/lib/commons-logging-1.1.3.jar
   hadoop-dist/target/hadoop-3.5.0-SNAPSHOT/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-18088. Replace log4j 1.x with reload4j. (#4052) [hadoop]

Posted by "steveloughran (via GitHub)" <gi...@apache.org>.
steveloughran merged PR #6547:
URL: https://github.com/apache/hadoop/pull/6547


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org