<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Spark job submit log messages on console in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Spark-job-submit-log-messages-on-console/m-p/163049#M125423</link>
    <description>&lt;P&gt;Well,couldn't make it work...&lt;/P&gt;&lt;P&gt;I tried out several options : &lt;/P&gt;&lt;P&gt;I successfully got drivers logs in dedicated log file when using following option with my "spark-submit" command line : --driver-java-options "-Dlog4j.configuration=file:///local/home/.../log4j.properties" &lt;/P&gt;&lt;P&gt;Couldn't obtain the same with your suggestion : --conf "spark.driver.extraJavaOptions=...&lt;/P&gt;&lt;P&gt;For executors' logs, I gave a try with your suggestion as well : --conf "spark.executor.extraJavaOptions=... but failed to notice any change to logging mechanism. I guess this is a classpath issue, but couldn't find any relevant example in the documentation &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;&lt;P&gt;If I use --conf "spark.executor.extraJavaOptions=-Dlog4j.configuration=log4j.properties", where should I put this log4j.properties file ? in the "root" folder of the fat jar that I pass to spark-submit command ? somewhere else ?&lt;/P&gt;&lt;P&gt;Note that I also tried with :&lt;/P&gt;&lt;P&gt;--conf "spark.executor.extraJavaOptions=-Dlog4j.configuration=file:///local/home/.../log4j.properties" to point to an external file (not in the jar file) but it failed too...&lt;/P&gt;&lt;P&gt;Any idea about something wrong in my configuration ?&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2017 21:26:02 GMT</pubDate>
    <dc:creator>schausson</dc:creator>
    <dc:date>2017-02-20T21:26:02Z</dc:date>
  </channel>
</rss>

