<?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 history logs not deleted in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-history-logs-not-deleted/m-p/219279#M79417</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Do you see the &amp;lt;app-id&amp;gt;.inprogress files or the actual &amp;lt;app-id&amp;gt; files after applying the mentioned configs?is yes, trying filtering this files and check if you have any file older than 1 day.  Also anything in spark history server logs? &lt;/P&gt;</description>
    <pubDate>Mon, 11 Jun 2018 02:35:41 GMT</pubDate>
    <dc:creator>sandyy006</dc:creator>
    <dc:date>2018-06-11T02:35:41Z</dc:date>
    <item>
      <title>spark history logs not deleted</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-history-logs-not-deleted/m-p/219278#M79416</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;we want to trigger the spark history deletion each hour ( spark.history.fs.cleaner.interval = 1h )&lt;/P&gt;&lt;P&gt;and to delete the spark history logs that older then one day ( spark.history.fs.cleaner.maxAge = 1d )&lt;/P&gt;&lt;P&gt;so we set the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="76611-capture.png" style="width: 922px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15994i0B9AA40CC9129A06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="76611-capture.png" alt="76611-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and restart the spark services&lt;/P&gt;&lt;P&gt;but after 2 hours still logs not deleted in spite logs need to deleted after one hour according to our setings&lt;/P&gt;&lt;P&gt;why logs not deleted after one hour ?&lt;BR /&gt;  &lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:40:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-history-logs-not-deleted/m-p/219278#M79416</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-08-18T02:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: spark history logs not deleted</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-history-logs-not-deleted/m-p/219279#M79417</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Do you see the &amp;lt;app-id&amp;gt;.inprogress files or the actual &amp;lt;app-id&amp;gt; files after applying the mentioned configs?is yes, trying filtering this files and check if you have any file older than 1 day.  Also anything in spark history server logs? &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 02:35:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-history-logs-not-deleted/m-p/219279#M79417</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-06-11T02:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: spark history logs not deleted</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-history-logs-not-deleted/m-p/219280#M79418</link>
      <description>&lt;P&gt;&lt;A href="@Michael Bronson"&gt;&lt;EM&gt; @Michael Bronson&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I think you need to quite understand what the parameters mean once &lt;STRONG&gt;spark&lt;/STRONG&gt;&lt;STRONG&gt;.history.fs.cleaner.enabled&lt;/STRONG&gt;  has been set to &lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The &lt;STRONG&gt;Key/Value&lt;/STRONG&gt; pairs  Value is in &lt;STRONG&gt;Hour(s) /days&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;spark.history.fs.cleaner.maxAge =1d &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Job history files older than this will be deleted when the filesystem history cleaner runs. &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;spark.history.fs.cleaner.interval=1h &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;This dictates how often the filesystem job history cleaner checks for files to delete. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Files are only deleted if they are older than &lt;STRONG&gt;spark.history.fs.cleaner.maxAge &lt;/STRONG&gt;so in your case above the maxAge is &lt;STRONG&gt;1 day=12h&lt;/STRONG&gt; so expect the files to be deleted only then.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To test or validate you can change it to 2h and those files should be gone &lt;STRONG&gt;3h&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HTH&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 02:46:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-history-logs-not-deleted/m-p/219280#M79418</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-06-11T02:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: spark history logs not deleted</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-history-logs-not-deleted/m-p/219281#M79419</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/196841/@Michael%20Bronson"&gt;@Michael Bronson&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Any updates? If you found this answer addressed your question, please take a moment to log 
in and click the "accept" link on the answer.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 05:59:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-history-logs-not-deleted/m-p/219281#M79419</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-06-11T05:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: spark history logs not deleted</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-history-logs-not-deleted/m-p/286999#M79420</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We understand that logs are not getting deleted even though you had enabled&amp;nbsp;&lt;SPAN&gt;spark.history.fs properties. Did you found any errors in SHS logs with regarding to this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AKR&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 09:41:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-history-logs-not-deleted/m-p/286999#M79420</guid>
      <dc:creator>AKR</dc:creator>
      <dc:date>2020-01-07T09:41:28Z</dc:date>
    </item>
  </channel>
</rss>

