<?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: [Yarn/Spark] Having a hard time suppressing Spark INFO logs. Have searched here. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Yarn-Spark-Having-a-hard-time-suppressing-Spark-INFO-logs/m-p/223565#M185430</link>
    <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/83321/robcornell.html" nodeid="83321"&gt;@Robert Cornell&lt;/A&gt; &lt;/P&gt;&lt;P&gt;In my experience the verbosity level in spark 2 has greatly been reduced compared to 1.6 - specially in the interactive interpreters like spark-shell. &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Please check default log4j in ambari &amp;gt; spark2 &amp;gt; conf and make sure the global log4j file is not setting any loggers to INFO. &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;If you wish to point to a specific log4j file, depending on the master and deployment mode you need to use one or more properties:&lt;/P&gt;&lt;P&gt;#yarn-client mode&lt;/P&gt;&lt;PRE&gt;bin/spark-submit --master yarn --deploy-mode client --files /path/to/log4j/log4j.properties --conf "spark.executor.extraJavaOptions='-Dlog4j.configuration=log4j.properties'" --driver-java-options "-Dlog4j.configuration=file:/path/to/log4j/log4j.properties" &lt;/PRE&gt;&lt;P&gt;#yarn-cluster mode&lt;/P&gt;&lt;PRE&gt;bin/spark-submit --master yarn --deploy-mode cluster --files /path/to/log4j/log4j.properties --conf "spark.executor.extraJavaOptions='-Dlog4j.configuration=log4j.properties'" --conf "spark.driver.extraJavaOptions='-Dlog4j.configuration=log4j.properties'" &lt;/PRE&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jun 2018 20:11:07 GMT</pubDate>
    <dc:creator>falbani</dc:creator>
    <dc:date>2018-06-16T20:11:07Z</dc:date>
  </channel>
</rss>

