Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15259

Reduce useless log information in FSNamesystemAuditLogger

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • logging, namenode
    • None

    Description

      For most operations, the 'dst' is null, add checking before logging the 'dst' information in FSNamesystemAuditLogger

      2020-04-03 16:34:40,021 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit: allowed=true ugi=user (auth:SIMPLE) ip=/127.0.0.1 cmd=listStatus src=/ dst=null perm=null proto=rpc
      2020-04-03 16:35:16,329 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit: allowed=true ugi=user (auth:SIMPLE) ip=/127.0.0.1 cmd=getfileinfo src=/ dst=null perm=null proto=rpc
      2020-04-03 16:35:16,362 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit: allowed=true ugi=user (auth:SIMPLE) ip=/127.0.0.1 cmd=mkdirs src=/user dst=null perm=yang:supergroup:rwxr-xr-x proto=rpc

      Attachments

        1. HDFS-15259.002.patch
          7 kB
          Yang Yun
        2. HDFS-15259.001.patch
          4 kB
          Yang Yun

        Activity

          People

            hadoop_yangyun Yang Yun
            hadoop_yangyun Yang Yun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: