Log4j bump to 2.18 due to [LOG4J2-3419] #12847
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Symptom:
Mappers/Reducers spawned by the 'hadoop_index` tasks on EMR cluster 6.3.xx were running in debug mode.
They were not respecting the args passed via job properties.
Solution:
As Hadoop is still on the old log4j 1.xx jars, there is some incompatibility when both log4j 1.xx and log4j 2.xx jars are present.
log4j 2.17.1 does not support log4j1.x custom levels. Hence it was defaulting to DEBUG.
This PR: https://github.com/apache/logging-log4j2/pull/789 adds the support for log4j 1.x levels.
Post upgrading the jar to log4j 2.18, the mapper/reducer are picking the correct logger level ie : INFO
How to check if your cluster is affected by this
Add the following properties in your ingestion spec:
Grab the application id from the peon task logs.
Go to yarn main nodes and do
yarn logs --applicationId xxx
If you see output like :
then your mappers and reducers are running in debug mode.
Another way is to take the flame graph of the mappers/reducers and see if any code path is hitting debug sections.
Key changed/added classes in this PR
pom.xml
This PR has: