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

NM incorrectly logs container user as the user who sent a start/stop container request in its audit log

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.3.0
    • Component/s: nodemanager
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      As in  ContainerManagerImpl.java

      protected void stopContainerInternal(ContainerId containerID)
            throws YarnException, IOException { 
          ...           
          NMAuditLogger.logSuccess(container.getUser(), AuditConstants.STOP_CONTAINER,
                 "ContainerManageImpl", containerID.getApplicationAttemptId().getApplicationId(), containerID);
      }

        Attachments

        1. YARN-8864.002.patch
          15 kB
          Wilfred Spiegelenburg
        2. YARN-8864.001.patch
          11 kB
          Wilfred Spiegelenburg

          Activity

            People

            • Assignee:
              wilfreds Wilfred Spiegelenburg
              Reporter:
              haibochen Haibo Chen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: