public class RMAuditLogger extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RMAuditLogger.AuditConstants |
Constructor and Description |
---|
RMAuditLogger() |
Modifier and Type | Method and Description |
---|---|
static void |
logFailure(String user,
String operation,
String perm,
String target,
String description)
Create a readable and parseable audit log string for a failed event.
|
static void |
logFailure(String user,
String operation,
String perm,
String target,
String description,
org.apache.hadoop.yarn.api.records.ApplicationId appId)
Create a readable and parseable audit log string for a failed event.
|
static void |
logFailure(String user,
String operation,
String perm,
String target,
String description,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
Create a readable and parseable audit log string for a failed event.
|
static void |
logFailure(String user,
String operation,
String perm,
String target,
String description,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.ipc.CallerContext callerContext) |
static void |
logFailure(String user,
String operation,
String perm,
String target,
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(String user,
String operation,
String target)
Create a readable and parseable audit log string for a successful event.
|
static void |
logSuccess(String user,
String operation,
String target,
org.apache.hadoop.yarn.api.records.ApplicationId appId)
Create a readable and parseable audit log string for a successful event.
|
static void |
logSuccess(String user,
String operation,
String target,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
Create a readable and parseable audit log string for a successful event.
|
static void |
logSuccess(String user,
String operation,
String target,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.ipc.CallerContext callerContext) |
static void |
logSuccess(String user,
String operation,
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.
|
static void |
logSuccess(String user,
String operation,
String target,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
InetAddress ip)
Create a readable and parseable audit log string for a successful event.
|
public static void logSuccess(String user, String operation, 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 to the ResourceManageroperation
- Operation requested by the user.target
- 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.
RMAuditLogger
uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').public static void logSuccess(String user, String operation, String target, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
user
- User who made the service request to the ResourceManager.operation
- Operation requested by the user.target
- The target on which the operation is being performed.appId
- Application Id in which operation was performed.attemptId
- Application Attempt Id in which operation was performed.
RMAuditLogger
uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').public static void logSuccess(String user, String operation, String target, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.ipc.CallerContext callerContext)
public static void logSuccess(String user, String operation, String target, org.apache.hadoop.yarn.api.records.ApplicationId appId, InetAddress ip)
user
- User who made the service request to the ResourceManager.operation
- Operation requested by the user.target
- The target on which the operation is being performed.appId
- Application Id in which operation was performed.ip
- The ip address of the caller.
RMAuditLogger
uses tabs ('\t') as a key-val
delimiter and hence the value fields should not contains tabs
('\t').public static void logSuccess(String user, String operation, String target, org.apache.hadoop.yarn.api.records.ApplicationId appId)
user
- User who made the service request to the ResourceManager.operation
- Operation requested by the user.target
- The target on which the operation is being performed.appId
- Application Id in which operation was performed.
RMAuditLogger
uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').public static void logSuccess(String user, String operation, String target)
user
- User who made the service request.operation
- Operation requested by the user.target
- The target on which the operation is being performed.
RMAuditLogger
uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').public static void logFailure(String user, String operation, String perm, String target, 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.perm
- Target permissions.target
- The target on which the operation is being performed.description
- Some additional information as to why the operation
failed.appId
- Application Id in which operation was performed.containerId
- Container Id in which operation was performed.
RMAuditLogger
uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').public static void logFailure(String user, String operation, String perm, String target, String description, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
user
- User who made the service request.operation
- Operation requested by the user.perm
- Target permissions.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.
RMAuditLogger
uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').public static void logFailure(String user, String operation, String perm, String target, String description, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.ipc.CallerContext callerContext)
public static void logFailure(String user, String operation, String perm, String target, String description, org.apache.hadoop.yarn.api.records.ApplicationId appId)
user
- User who made the service request.operation
- Operation requested by the user.perm
- Target permissions.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.
RMAuditLogger
uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').public static void logFailure(String user, String operation, String perm, String target, String description)
user
- User who made the service request.operation
- Operation requested by the user.perm
- Target permissions.target
- The target on which the operation is being performed.description
- Some additional information as to why the operation
failed.
RMAuditLogger
uses tabs ('\t') as a key-val delimiter
and hence the value fields should not contains tabs ('\t').Copyright © 2017 Apache Software Foundation. All Rights Reserved.