public class NMAuditLogger
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
NMAuditLogger.AuditConstants |
| Constructor | Description |
|---|---|
NMAuditLogger() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
logFailure(java.lang.String user,
java.lang.String operation,
java.lang.String target,
java.lang.String description) |
Create a readable and parseable audit log string for a failed event.
|
static void |
logFailure(java.lang.String user,
java.lang.String operation,
java.lang.String target,
java.lang.String description,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.yarn.api.records.ContainerId containerId) |
Create a readable and parseable audit log string for a failed event.
|
static void |
logSuccess(java.lang.String user,
java.lang.String operation,
java.lang.String target) |
Create a readable and parseable audit log string for a successful event.
|
static void |
logSuccess(java.lang.String user,
java.lang.String operation,
java.lang.String target,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.yarn.api.records.ContainerId containerId) |
Create a readable and parseable audit log string for a successful event.
|
public static void logSuccess(java.lang.String user,
java.lang.String operation,
java.lang.String target,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.yarn.api.records.ContainerId containerId)
user - User who made the service request.operation - Operation requested by the usertarget - The target on which the operation is being performed.appId - Application Id in which operation was performed.containerId - Container Id in which operation was performed.
NMAuditLogger uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').public static void logSuccess(java.lang.String user,
java.lang.String operation,
java.lang.String target)
user - User who made the service request.operation - Operation requested by the usertarget - The target on which the operation is being performed.
NMAuditLogger uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').public static void logFailure(java.lang.String user,
java.lang.String operation,
java.lang.String target,
java.lang.String description,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.yarn.api.records.ContainerId containerId)
user - User who made the service request.operation - Operation requested by the user.target - The target on which the operation is being performed.description - Some additional information as to why the operation
failed.appId - ApplicationId in which operation was performed.containerId - Container Id in which operation was performed.
NMAuditLogger uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').public static void logFailure(java.lang.String user,
java.lang.String operation,
java.lang.String target,
java.lang.String description)
user - User who made the service request.operation - Operation requested by the user.target - The target on which the operation is being performed.description - Some additional information as to why the operation
failed.
NMAuditLogger uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').Copyright © 2008–2025 Apache Software Foundation. All rights reserved.