Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-7235

NPE in HadoopArchiveLogs#filterAppsByAggregatedStatus

    XMLWordPrintableJSON

    Details

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

      Description

      If the user running the Archive Logs task does not have the VIEW_APP permission of an APP, LogAggregationStatus is Null, and HadoopArchiveLogs#filterAppsByAggregatedStatus does not perform NPE check.

       

      NPE exception

      NullPointerExceptionNullPointerExceptionjava.lang.NullPointerException at org.apache.hadoop.tools.HadoopArchiveLogs.filterAppsByAggregatedStatus(HadoopArchiveLogs.java:306) at org.apache.hadoop.tools.HadoopArchiveLogs.run(HadoopArchiveLogs.java:157) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90) at org.apache.hadoop.tools.HadoopArchiveLogs.main(HadoopArchiveLogs.java:119)

       

        Attachments

        1. MAPREDUCE-7235.01.patch
          10 kB
          Yicong Cai
        2. MAPREDUCE-7235.branch-2.01.patch
          10 kB
          Yicong Cai

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                caiyicong Yicong Cai
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: