<?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\yarn disable second attempt on failure in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/spark-yarn-disable-second-attempt-on-failure/m-p/234581#M196401</link>
    <description>&lt;P&gt;i want to disable second attempt&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 20:15:00 GMT</pubDate>
    <dc:creator>ilia987</dc:creator>
    <dc:date>2019-02-20T20:15:00Z</dc:date>
    <item>
      <title>spark\yarn disable second attempt on failure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-yarn-disable-second-attempt-on-failure/m-p/234579#M196399</link>
      <description>&lt;P&gt;when submitting a job that failed, it try to run with another attemped, how i can disable the second run ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;what configuration param i must set?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 20:03:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-yarn-disable-second-attempt-on-failure/m-p/234579#M196399</guid>
      <dc:creator>ilia987</dc:creator>
      <dc:date>2019-02-20T20:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: spark\yarn disable second attempt on failure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-yarn-disable-second-attempt-on-failure/m-p/234580#M196400</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45274/ilia987.html"&gt;@Ilia K&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do you want to control the number of attempts? If yes then you might be interested in the following property &lt;STRONG&gt;"spark.yarn.maxAppAttempts" &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;--conf&amp;nbsp;&lt;EM&gt;spark&lt;/EM&gt;.&lt;EM&gt;yarn&lt;/EM&gt;.&lt;EM&gt;maxAppAttempts&lt;/EM&gt;=1&lt;/PRE&gt;&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="https://spark.apache.org/docs/latest/running-on-yarn.html" target="_blank"&gt;https://spark.apache.org/docs/latest/running-on-yarn.html&lt;/A&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE&gt;spark.yarn.maxAppAttempts&lt;/CODE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;CODE&gt;yarn.resourcemanager.am.max-attempts&lt;/CODE&gt; in YARN&lt;/TD&gt;&lt;TD&gt;The maximum number of attempts that will be made to submit the application. It should be no larger than the global number of max attempts in the YARN configuration.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 20:07:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-yarn-disable-second-attempt-on-failure/m-p/234580#M196400</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-02-20T20:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: spark\yarn disable second attempt on failure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-yarn-disable-second-attempt-on-failure/m-p/234581#M196401</link>
      <description>&lt;P&gt;i want to disable second attempt&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 20:15:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-yarn-disable-second-attempt-on-failure/m-p/234581#M196401</guid>
      <dc:creator>ilia987</dc:creator>
      <dc:date>2019-02-20T20:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: spark\yarn disable second attempt on failure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-yarn-disable-second-attempt-on-failure/m-p/234582#M196402</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45274/ilia987.html" nodeid="45274"&gt;@Ilia K&lt;/A&gt;&lt;/P&gt;&lt;P&gt;While submitting your Spark Job csan you try passing the  &lt;/P&gt;&lt;PRE&gt;# spark-submit &amp;nbsp;--master yarn --deploy-mode cluster   --conf&amp;nbsp;&lt;EM&gt;spark&lt;/EM&gt;.&lt;EM&gt;yarn&lt;/EM&gt;.&lt;EM&gt;maxAppAttempts&lt;/EM&gt;=1. .............&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Or try setting  "yarn.resourcemanager.am.max-attempts" to 1  (default may be 2)  in Ambari UI --&amp;gt; yarn --&amp;gt; Configs --&amp;gt; Advanced --&amp;gt; Advanced yarn-site&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 20:18:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-yarn-disable-second-attempt-on-failure/m-p/234582#M196402</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-02-20T20:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: spark\yarn disable second attempt on failure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-yarn-disable-second-attempt-on-failure/m-p/234583#M196403</link>
      <description>&lt;P&gt;i think that did what i needed. thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 21:26:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-yarn-disable-second-attempt-on-failure/m-p/234583#M196403</guid>
      <dc:creator>ilia987</dc:creator>
      <dc:date>2019-02-20T21:26:18Z</dc:date>
    </item>
  </channel>
</rss>

