Class HdfsAuditLogger
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.HdfsAuditLogger
- All Implemented Interfaces:
AuditLogger
- Direct Known Subclasses:
DefaultAuditLogger
Extension of
AuditLogger.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlogAuditEvent(boolean succeeded, String userName, InetAddress addr, String cmd, String src, String dst, FileStatus status) Called to log an audit event.abstract voidlogAuditEvent(boolean succeeded, String userName, InetAddress addr, String cmd, String src, String dst, FileStatus stat, CallerContext callerContext, UserGroupInformation ugi, org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenSecretManager dtSecretManager) Same aslogAuditEvent(boolean, String, InetAddress, String, String, String, FileStatus)with additional parameters related to logging delegation token tracking IDs.abstract voidlogAuditEvent(boolean succeeded, String userName, InetAddress addr, String cmd, String src, String dst, FileStatus stat, UserGroupInformation ugi, org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenSecretManager dtSecretManager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hdfs.server.namenode.AuditLogger
initialize
-
Constructor Details
-
HdfsAuditLogger
public HdfsAuditLogger()
-
-
Method Details
-
logAuditEvent
public void logAuditEvent(boolean succeeded, String userName, InetAddress addr, String cmd, String src, String dst, FileStatus status) Description copied from interface:AuditLoggerCalled to log an audit event.This method must return as quickly as possible, since it's called in a critical section of the NameNode's operation.
- Specified by:
logAuditEventin interfaceAuditLogger- Parameters:
succeeded- Whether authorization succeeded.userName- Name of the user executing the request.addr- Remote address of the request.cmd- The requested command.src- Path of affected source file.dst- Path of affected destination file (if any).status- File information for operations that change the file's metadata (permissions, owner, times, etc).
-
logAuditEvent
public abstract void logAuditEvent(boolean succeeded, String userName, InetAddress addr, String cmd, String src, String dst, FileStatus stat, CallerContext callerContext, UserGroupInformation ugi, org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenSecretManager dtSecretManager) Same aslogAuditEvent(boolean, String, InetAddress, String, String, String, FileStatus)with additional parameters related to logging delegation token tracking IDs.- Parameters:
succeeded- Whether authorization succeeded.userName- Name of the user executing the request.addr- Remote address of the request.cmd- The requested command.src- Path of affected source file.dst- Path of affected destination file (if any).stat- File information for operations that change the file's metadata (permissions, owner, times, etc).callerContext- Context information of the callerugi- UserGroupInformation of the current user, or null if not logging token tracking informationdtSecretManager- The token secret manager, or null if not logging token tracking information
-
logAuditEvent
public abstract void logAuditEvent(boolean succeeded, String userName, InetAddress addr, String cmd, String src, String dst, FileStatus stat, UserGroupInformation ugi, org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenSecretManager dtSecretManager)
-