Class HSAuditLogger
java.lang.Object
org.apache.hadoop.mapreduce.v2.hs.HSAuditLogger
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCreate a readable and parseable audit log string for a failed event.static voidlogSuccess(String user, String operation, String target) Create a readable and parseable audit log string for a successful event.
-
Constructor Details
-
HSAuditLogger
public HSAuditLogger()
-
-
Method Details
-
logSuccess
Create a readable and parseable audit log string for a successful event.- Parameters:
user- User who made the service request.operation- Operation requested by the user.target- The target on which the operation is being performed.
Note that theHSAuditLoggeruses tabs ('\t') as a key-val delimiter and hence the value fields should not contains tabs ('\t').
-
logFailure
public 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.- Parameters:
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.
Note that theHSAuditLoggeruses tabs ('\t') as a key-val delimiter and hence the value fields should not contains tabs ('\t').
-