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

NPE in HadoopArchiveLogs#filterAppsByAggregatedStatus

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.9.2
    • None
    • None
    • None

    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            caiyicong Yicong Cai

            Dates

              Created:
              Updated:

              Slack

                Issue deployment