I'm trying to override Spark's default log4j.properties
, but haven't had any luck. I tried the adding the following to spark-submit:
--conf "spark.executor.extraJavaOptions=Dlog4j.configuration=/tmp/log4j.properties"
--conf "spark.driver.extraJavaOptions=-Dlog4j.configuration=/tmp/log4j.properties"
But that didn't seem to work. I also tried using --files
option in spark-submit
and that also didn't seem to work. Has anyone got logging setup so you have a log4j.properties
file per driver and not using the default?
I'm using Mesos and Marathon to run the Spark driver. I wasn't sure of the --files
option and I couldn't find any examples of how it's used and what it does exactly.
I would also like to mention that I manually uploaded the log4j.properties
file to all my nodes that had my changes for testing.
Version of Spark is 1.1.0 as of right now.