GitHub user michellemay opened a pull request:

    https://github.com/apache/spark/pull/8109

    [SPARK-9826][Core] Fix cannot use custom classes in log4j.properties

    Refactor Utils class and create ShutdownHookManager.  
    
    NOTE: Wasn't able to run /dev/run-tests on windows machine.
    Manual tests were conducted locally using custom log4j.properties file with 
Redis appender and logstash formatter (bundled in the fat-jar submitted to 
spark)
    
    ex:
    log4j.rootCategory=WARN,console,redis
    log4j.appender.console=org.apache.log4j.ConsoleAppender
    log4j.appender.console.target=System.err
    log4j.appender.console.layout=org.apache.log4j.PatternLayout
    log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p 
%c{1}: %m%n
    
    # Settings to quiet third party logs that are too verbose
    log4j.logger.org.eclipse.jetty=WARN
    log4j.logger.org.eclipse.jetty.util.component.AbstractLifeCycle=ERROR
    log4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=INFO
    log4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=INFO
    log4j.logger.org.apache.spark.graphx.Pregel=INFO
    
    # Redis server 
    log4j.appender.redis=com.ryantenney.log4j.FailoverRedisAppender
    log4j.appender.redis.endpoints=hostname:port
    log4j.appender.redis.key=mykey
    log4j.appender.redis.alwaysBatch=false
    log4j.appender.redis.layout=net.logstash.log4j.JSONEventLayoutV1


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/michellemay/spark SPARK-9826

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/8109.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #8109
    
----
commit de69f6e0bb138e6fd92694806794ad68ba79a78e
Author: michellemay <[email protected]>
Date:   2015-08-11T18:15:58Z

    Refactor Utils class to create ShutdownHookManager

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to