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

NM should not aggregate logs older than the retention policy

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      When a log aggregation fails on the NM the information is for the attempt is kept in the recovery DB. Log aggregation can fail for multiple reasons which are often related to HDFS space or permissions.

      On restart the recovery DB is read and if an application attempt needs its logs aggregated, the files are scheduled for aggregation without any checks. The log files could be older than the retention limit in which case we should not aggregate them but immediately mark them for deletion from the local file system.

      Attachments

        1. yarn4766.006.patch
          51 kB
          Haibo Chen
        2. yarn4766.005.patch
          52 kB
          Haibo Chen
        3. yarn4766.004.patch
          53 kB
          Haibo Chen
        4. yarn4766.003.patch
          55 kB
          Haibo Chen
        5. yarn4766.002.patch
          54 kB
          Haibo Chen
        6. yarn4766.001.patch
          54 kB
          Haibo Chen

        Activity

          People

            haibochen Haibo Chen
            haibochen Haibo Chen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: