Class DefaultAuditLogger

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.HdfsAuditLogger
org.apache.hadoop.hdfs.server.namenode.DefaultAuditLogger
All Implemented Interfaces:
AuditLogger

@Public @Evolving public abstract class DefaultAuditLogger extends HdfsAuditLogger
This class provides an interface for Namenode and Router to Audit events information. This class can be extended and can be used when no access logger is defined in the config file.
  • Field Details

    • STRING_BUILDER

      protected static final ThreadLocal<StringBuilder> STRING_BUILDER
    • isCallerContextEnabled

      protected volatile boolean isCallerContextEnabled
    • callerContextMaxLen

      protected int callerContextMaxLen
      The maximum bytes a caller context string can have.
    • callerSignatureMaxLen

      protected int callerSignatureMaxLen
    • logTokenTrackingId

      protected boolean logTokenTrackingId
      adds a tracking ID for all audit log events.
    • debugCmdSet

      protected Set<String> debugCmdSet
      List of commands to provide debug messages.
  • Constructor Details

    • DefaultAuditLogger

      public DefaultAuditLogger()
  • Method Details