<?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: can I delete files in /ats/done manually without causing problems? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217270#M63795</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/5744/mikeyharding.html" nodeid="5744"&gt;@MPH&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check the other related paramters in the documentation that I called above such as: yarn.timeline-service.entity-group-fs-store.scan-interval-seconds &lt;/P&gt;&lt;P&gt;And make sure to restart the yarn timelineserver after making the changes.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2017 19:48:38 GMT</pubDate>
    <dc:creator>ssahi</dc:creator>
    <dc:date>2017-06-28T19:48:38Z</dc:date>
    <item>
      <title>can I delete files in /ats/done manually without causing problems?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217265#M63790</link>
      <description>&lt;P&gt;I want to do 'hdfs dfs -rm -R /ats/done' because there are some large files in there taking up a lot of space. Is this safe to do?&lt;/P&gt;&lt;P&gt;I also want to clear out logs in /app-logs/ , can I also delete these manually?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 01:52:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217265#M63790</guid>
      <dc:creator>mph</dc:creator>
      <dc:date>2017-06-28T01:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: can I delete files in /ats/done manually without causing problems?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217266#M63791</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/5744/mikeyharding.html" nodeid="5744"&gt;@MPH&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You might be safer configuring the timeline properties in the YARN configs (and ensuring the ttl service is enabled), and letting YARN clean them up from the leveldb vs brute force deletion.  You can reduce the time to live, and restart the ATS service to have it kick in and free up the space.  See the following links in case they help further:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_yarn-resource-management/content/ref-ca0dc265-903c-418a-9145-2f39fb3f6dd4.1.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_yarn-resource-management/content/ref-ca0dc265-903c-418a-9145-2f39fb3f6dd4.1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/46385/yarn-timeline-db-consuming-466gb-space.html" target="_blank"&gt;https://community.hortonworks.com/questions/46385/yarn-timeline-db-consuming-466gb-space.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the /app-logs can also be managed by the yarn configs for time to retain, I think its:&lt;/P&gt;&lt;P&gt;yarn.nodemanager.log.retain-seconds&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 02:34:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217266#M63791</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-06-28T02:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: can I delete files in /ats/done manually without causing problems?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217267#M63792</link>
      <description>&lt;P&gt;Hi - ive made these changes to the parameters and restarted yarn but the large files still remain in /ats/done.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 03:53:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217267#M63792</guid>
      <dc:creator>mph</dc:creator>
      <dc:date>2017-06-28T03:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: can I delete files in /ats/done manually without causing problems?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217268#M63793</link>
      <description>&lt;P&gt;yarn.timeline-service.entity-group-fs-store.retain-seconds - ive tried reducing this (to 60 seconds) but it still doesnt seem to clear out the logs?&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 16:26:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217268#M63793</guid>
      <dc:creator>mph</dc:creator>
      <dc:date>2017-06-28T16:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: can I delete files in /ats/done manually without causing problems?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217269#M63794</link>
      <description>&lt;P&gt;On further investigation in the timeline server log file I saw that periodically there was a FileNotFound error when attempting to clean out the earliest application log directory that still contained data in ats/done :&lt;/P&gt;&lt;PRE&gt;2017-06-28 11:25:07,910 INFO  timeline.EntityGroupFSTimelineStore (EntityGroupFSTimelineStore.java:cleanLogs(462)) - Deleting hdfs://XXX:8020/ats/done/1494799829596/0000/000/application_1494799829596_0508
2017-06-28 11:25:07,924 ERROR timeline.EntityGroupFSTimelineStore (EntityGroupFSTimelineStore.java:run(899)) - Error cleaning files
java.io.FileNotFoundException: File hdfs:/XXX:8020/ats/done/1494799829596/0000/000/application_1494799829596_0508 does not exist.&lt;/PRE&gt;&lt;P&gt;It seems because this file was missing in the directory the process died, hence from this point the logs have been building up because it has been unable to clear them causing storage problems.&lt;/P&gt;&lt;P&gt;The question is why does the process not continue to the next logs if it cannot find a specific file to delete, or in fact why is it looking for a specific file when it should just purge whatever is there given the timestamp expiry?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 18:05:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217269#M63794</guid>
      <dc:creator>mph</dc:creator>
      <dc:date>2017-06-28T18:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: can I delete files in /ats/done manually without causing problems?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217270#M63795</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/5744/mikeyharding.html" nodeid="5744"&gt;@MPH&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check the other related paramters in the documentation that I called above such as: yarn.timeline-service.entity-group-fs-store.scan-interval-seconds &lt;/P&gt;&lt;P&gt;And make sure to restart the yarn timelineserver after making the changes.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:48:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-I-delete-files-in-ats-done-manually-without-causing/m-p/217270#M63795</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-06-28T19:48:38Z</dc:date>
    </item>
  </channel>
</rss>

