<?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: How to introduce delay time between retry attempts for spark streaming job in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-introduce-delay-time-between-retry-attempts-for-spark/m-p/363657#M240430</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92562"&gt;@sat_046&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2023 07:20:01 GMT</pubDate>
    <dc:creator>VidyaSargur</dc:creator>
    <dc:date>2023-02-13T07:20:01Z</dc:date>
    <item>
      <title>How to introduce delay time between retry attempts for spark streaming job</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-introduce-delay-time-between-retry-attempts-for-spark/m-p/362805#M240428</link>
      <description>&lt;P&gt;We are running a spark streaming job which reads data from kafka and writes to RDBMS. We dont want this job to fail easily due to minor fluctuations in cluster health/issue. Write now spark job has configuration to retry 5 attempts before the whole job fails. But all these retries are happening in quick succession , one after another. Is there a way we can put some delay/sleep time between retry attempts for this job?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 11:48:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-introduce-delay-time-between-retry-attempts-for-spark/m-p/362805#M240428</guid>
      <dc:creator>sat_046</dc:creator>
      <dc:date>2023-02-01T11:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to introduce delay time between retry attempts for spark streaming job</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-introduce-delay-time-between-retry-attempts-for-spark/m-p/363453#M240429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92562"&gt;@sat_046&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think we have a specific configuration parameter to handle the task retry attempts with some delay. But we have a parameters to&amp;nbsp;&lt;SPAN&gt;blacklist&lt;/SPAN&gt; the node if the task is failed with some no of attempts in the node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;References:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Configuring-spark-task-maxFailures-amp-spark-blacklist-task/ta-p/335235" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/Configuring-spark-task-maxFailures-amp-spark-blacklist-task/ta-p/335235&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&lt;A href="https://www.waitingforcode.com/apache-spark/failed-tasks-resubmit/read" target="_blank"&gt;https://www.waitingforcode.com/apache-spark/failed-tasks-resubmit/read&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 07:00:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-introduce-delay-time-between-retry-attempts-for-spark/m-p/363453#M240429</guid>
      <dc:creator>RangaReddy</dc:creator>
      <dc:date>2023-02-09T07:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to introduce delay time between retry attempts for spark streaming job</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-introduce-delay-time-between-retry-attempts-for-spark/m-p/363657#M240430</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92562"&gt;@sat_046&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 07:20:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-introduce-delay-time-between-retry-attempts-for-spark/m-p/363657#M240430</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-02-13T07:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to introduce delay time between retry attempts for spark streaming job</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-introduce-delay-time-between-retry-attempts-for-spark/m-p/367317#M240431</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92562"&gt;@sat_046&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As i mentioned earlier comment, unfortunately it is not possible to delay the tasks.&amp;nbsp;You can find the Spark code when tasks failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="c-link" href="https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala#L879C8-L1002" target="_blank" rel="noopener noreferrer"&gt;https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala#L879C8-L1002&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please accept the solution if you liked my answer.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 13:43:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-introduce-delay-time-between-retry-attempts-for-spark/m-p/367317#M240431</guid>
      <dc:creator>RangaReddy</dc:creator>
      <dc:date>2023-03-30T13:43:19Z</dc:date>
    </item>
  </channel>
</rss>

