You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2015/08/13 02:41:46 UTC

[jira] [Resolved] (SPARK-9826) Cannot use custom classes in log4j.properties

     [ https://issues.apache.org/jira/browse/SPARK-9826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcelo Vanzin resolved SPARK-9826.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.0
                   1.4.2

> Cannot use custom classes in log4j.properties
> ---------------------------------------------
>
>                 Key: SPARK-9826
>                 URL: https://issues.apache.org/jira/browse/SPARK-9826
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.4.1
>            Reporter: Michel Lemay
>            Priority: Minor
>              Labels: regression
>             Fix For: 1.4.2, 1.5.0
>
>
> log4j is initialized before spark class loader is set on the thread context.
> Therefore it cannot use classes embedded in fat-jars submitted to spark.
> While parsing arguments, spark calls methods on Utils class and triggers ShutdownHookManager static initialization.  This then leads to log4j being initialized before spark gets the chance to specify custom class MutableURLClassLoader on the thread context.
> See detailed explanation here:
> http://apache-spark-user-list.1001560.n3.nabble.com/log4j-custom-appender-ClassNotFoundException-with-spark-1-4-1-tt24159.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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