Github user vanzin commented on the pull request:

    https://github.com/apache/spark/pull/560#issuecomment-45149619
  
    Hi Tom,
    
    I just removed all the log4j-related code. You can achieve both previously 
available use cases with spark-submit arguments:
    
    * To use a custom config file, just say "--files 
/path/to/log4j.properties", and that gets distributed to the worker nodes and 
is available at the root of the classpath, so it overrides the default 
log4j-spark-container.properties.
    
    * To use a local config file, just say 
"spark.executor.extraJavaOpts=-Dlog4j.configuration=file:/path/to/log4j.properties"
    
    Note that since local: is broken in 1.0.0, the second one above cannot be 
achieved by using SPARK_LOG4J_CONF in that release.
    
    As for backwards compatibility, SPARK_LOG4J_CONF doesn't seem to be 
documented anywhere, and the tricks above work fine with 1.0.0. I guess I could 
add the content of SPARK_LOG4J_CONF to the list of copied files if you think 
that's important.


---
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.
---

Reply via email to