Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-8627

EntityGroupFSTimelineStore hdfs done directory keeps on accumulating

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.8.0
    • Fix Version/s: None
    • Component/s: timelineserver
    • Labels:
      None

      Description

      The EntityLogCleaner threads exits with the following ERROR every time it runs.  

      2018-07-18 19:59:39,837 INFO timeline.EntityGroupFSTimelineStore (EntityGroupFSTimelineStore.java:cleanLogs(462)) - Deleting hdfs://namenode/ats/done/1499684568068/0000/018/application_1499684568068_18268
      2018-07-18 19:59:39,844 INFO timeline.EntityGroupFSTimelineStore (EntityGroupFSTimelineStore.java:cleanLogs(462)) - Deleting hdfs://namenode/ats/done/1499684568068/0000/018/application_1499684568068_18270
      2018-07-18 19:59:39,848 ERROR timeline.EntityGroupFSTimelineStore (EntityGroupFSTimelineStore.java:run(899)) - Error cleaning files  java.io.FileNotFoundException: File hdfs://namenode/ats/done/1499684568068/0000/018/application_1499684568068_18270 does not exist.  at org.apache.hadoop.hdfs.DistributedFileSystem$DirListingIterator.<init>(DistributedFileSystem.java:1062)  at org.apache.hadoop.hdfs.DistributedFileSystem$DirListingIterator.<init>(DistributedFileSystem.java:1069)  at org.apache.hadoop.hdfs.DistributedFileSystem$DirListingIterator.<init>(DistributedFileSystem.java:1040)  at org.apache.hadoop.hdfs.DistributedFileSystem$23.doCall(DistributedFileSystem.java:1019)  at org.apache.hadoop.hdfs.DistributedFileSystem$23.doCall(DistributedFileSystem.java:1015)  at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)  at org.apache.hadoop.hdfs.DistributedFileSystem.listStatusIterator(DistributedFileSystem.java:1015)  at org.apache.hadoop.yarn.server.timeline.EntityGroupFSTimelineStore.shouldCleanAppLogDir(EntityGroupFSTimelineStore.java:480) 
      

       
      Each time the thread gets scheduled, it is a different folder encountering the error. As a result, the thread is not able to clean all the old done directories, since it stops after this error. 

        Attachments

        1. app-domain-logs.zip
          12 kB
          Tarun Parimi
        2. YARN-8627.001.patch
          2 kB
          Tarun Parimi
        3. YARN-8627.002.patch
          5 kB
          Tarun Parimi
        4. YARN-8627.003.patch
          5 kB
          Tarun Parimi

          Activity

            People

            • Assignee:
              tarunparimi Tarun Parimi
              Reporter:
              tarunparimi Tarun Parimi
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: