浏览代码

HDFS-10724. Document caller context config keys. (Contributed by Mingliang Liu)

Mingliang Liu 8 年之前
父节点
当前提交
4bcbef39f7
共有 1 个文件被更改,包括 28 次插入0 次删除
  1. 28 0
      hadoop-common-project/hadoop-common/src/main/resources/core-default.xml

+ 28 - 0
hadoop-common-project/hadoop-common/src/main/resources/core-default.xml

@@ -2325,4 +2325,32 @@
     <value>org.apache.hadoop.fs.adl.Adl</value>
   </property>
 
+  <property>
+    <name>hadoop.caller.context.enabled</name>
+    <value>false</value>
+    <description>When the feature is enabled, additional fields are written into
+      name-node audit log records for auditing coarse granularity operations.
+    </description>
+  </property>
+  <property>
+    <name>hadoop.caller.context.max.size</name>
+    <value>128</value>
+    <description>The maximum bytes a caller context string can have. If the
+      passed caller context is longer than this maximum bytes, client will
+      truncate it before sending to server. Note that the server may have a
+      different maximum size, and will truncate the caller context to the
+      maximum size it allows.
+    </description>
+  </property>
+  <property>
+    <name>hadoop.caller.context.signature.max.size</name>
+    <value>40</value>
+    <description>
+      The caller's signature (optional) is for offline validation. If the
+      signature exceeds the maximum allowed bytes in server, the caller context
+      will be abandoned, in which case the caller context will not be recorded
+      in audit logs.
+    </description>
+  </property>
+
 </configuration>