[
https://issues.apache.org/jira/browse/SPARK-6305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16588053#comment-16588053
]
Steve Loughran commented on SPARK-6305:
---------------------------------------
1. exclusion of log4j 1.x
you can only safely exclude it if your dependencies don't expect it on their
CP. Otherwise: stack traces.
See: HADOOP-12956 HBASE-10092 for how these have moved/are slowly moving off
commons logging to SLF4J for their APIs, so you can swap in log4j 2.x. Once
they are all on SLF4J, then the code-level switch should be straightforward,
leaving on the configuration problem #4.
2: use of low level log4j in tests.
Usually done to either look for log entries in output, or to turn back logging.
If you can move that, then it's possible --but it will be a one-way trip
3. Spark logging use of log4j
because spark s"strings" already handle closure stuff, key bits of the log4j
APIs in java 8 aren't so compelling, but there are nice things in the new
runtime, which is why that move to SLF4J has been going on everywhere. It's
just a slow job because it touches pretty much every single .java file in every
single JAR which spark imports.
4. "There are a few log4.properties file that would have to be converted to
the log4j2 format."
This is actually one of the biggest barriers to switching to log4j 2. in
production: all the log4j.properties files *everywhere* will need to move, and
all cluster management tools which work with those files are going to need
rework & re-releases, unless/until logj4 has that promised support for the old
files.
> Add support for log4j 2.x to Spark
> ----------------------------------
>
> Key: SPARK-6305
> URL: https://issues.apache.org/jira/browse/SPARK-6305
> Project: Spark
> Issue Type: Improvement
> Components: Build
> Reporter: Tal Sliwowicz
> Priority: Minor
>
> log4j 2 requires replacing the slf4j binding and adding the log4j jars in the
> classpath. Since there are shaded jars, it must be done during the build.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]