<?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: log4j.properties override spark executor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104656#M67553</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/844/marcdelignie.html" nodeid="844"&gt;@MarcdL&lt;/A&gt; Can you please set that property explicitly either in code or in spark command line?&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2016 23:36:22 GMT</pubDate>
    <dc:creator>jyadav</dc:creator>
    <dc:date>2016-05-27T23:36:22Z</dc:date>
    <item>
      <title>log4j.properties override spark executor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104653#M67550</link>
      <description>&lt;P&gt;In a Spark application I want to configure the log levels for just my own packages on both the driver and executors. Can this be done without copying the entire spark-client/conf and spark-client/bin to your project and make modifications on various places? Yes, for the driver it is easy because of the --driver-java-options switch in spark-submit, but for the executors a similar switch is lacking.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 19:09:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104653#M67550</guid>
      <dc:creator>marc_de_lignie</dc:creator>
      <dc:date>2016-05-27T19:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: log4j.properties override spark executor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104654#M67551</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/844/marcdelignie.html" nodeid="844"&gt;@MarcdL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did you tried with --conf "spark.executor.extraJavaOptions?&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 19:17:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104654#M67551</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-27T19:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: log4j.properties override spark executor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104655#M67552</link>
      <description>&lt;P&gt;Hi Jitendra,&lt;/P&gt;&lt;P&gt;I believe I did, but that I stranded in the fact the -Dlog4j.configuration  needs an absolute path, while you can merely provide the log4j,properties with --files and provide a relative path as ./log4j.properties on the executor.&lt;/P&gt;&lt;P&gt;Best wishes,   Marc&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 19:22:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104655#M67552</guid>
      <dc:creator>marc_de_lignie</dc:creator>
      <dc:date>2016-05-27T19:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: log4j.properties override spark executor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104656#M67553</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/844/marcdelignie.html" nodeid="844"&gt;@MarcdL&lt;/A&gt; Can you please set that property explicitly either in code or in spark command line?&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 23:36:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104656#M67553</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-27T23:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: log4j.properties override spark executor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104657#M67554</link>
      <description>&lt;P&gt;Hi Jitendra,&lt;/P&gt;&lt;P&gt;You are right, it works this way!&lt;/P&gt;&lt;P&gt;The relevant lines in my spark-submit run script are:&lt;/P&gt;&lt;P&gt;--files external/log4j.properties \ &lt;/P&gt;&lt;P&gt;--conf "spark.executor.extraJavaOptions='-Dlog4j.configuration=log4j.properties'" \ &lt;/P&gt;&lt;P&gt;--driver-java-options "-Dlog4j.configuration=file:/absolute/path/to/your/project/externall/log4j.properties" \&lt;/P&gt;&lt;P&gt;The result is still confusing because yarn keeps pushing INFO messages even if your project's rootlogger is set to WARN. But this setup does allow to set the logging level for your own project's packages.&lt;/P&gt;&lt;P&gt;Thanks for pushing me into this final step!&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 19:42:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104657#M67554</guid>
      <dc:creator>marc_de_lignie</dc:creator>
      <dc:date>2016-05-28T19:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: log4j.properties override spark executor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104658#M67555</link>
      <description>&lt;P&gt;You can just use sc.setLogLevel("ERROR") in your code to suppress log information without changing the log4j.properties file.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2016 15:06:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104658#M67555</guid>
      <dc:creator>don_jernigan</dc:creator>
      <dc:date>2016-07-02T15:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: log4j.properties override spark executor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104659#M67556</link>
      <description>&lt;P&gt; --driver-java-options "-Dlog4j.debug=true -Dlog4j.configuration=file://${BASEDIR}/src/main/resources/log4j.properties" \ &lt;/P&gt;&lt;P&gt; --conf "spark.executor.extraJavaOptions=-Dlog4j.configuration=file:///log4j.properties" \ &lt;/P&gt;&lt;P&gt; --files "{${BASEDIR}/src/main/resources}" \&lt;/P&gt;&lt;P&gt;So, for the driver I use the driver-java-options and for the executer I combine the conf and the files.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 15:40:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104659#M67556</guid>
      <dc:creator>michel_weber</dc:creator>
      <dc:date>2016-07-07T15:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: log4j.properties override spark executor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104660#M67557</link>
      <description>&lt;P&gt;I tried to follow the same steps mentioned above to override the log4j properties but still not working.  My problem is I am running kafka streaming job in yarn cluster mode and when I go and see logs after one hour in web UI,the logs are grown big. I like to know the steps where I can write logs in local file system/hdfs so I would go and see the logs in  unix terminal instead of using web UI.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 19:54:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/log4j-properties-override-spark-executor/m-p/104660#M67557</guid>
      <dc:creator>balakumar_b05</dc:creator>
      <dc:date>2017-02-23T19:54:42Z</dc:date>
    </item>
  </channel>
</rss>

