From 97ec34e117af71e1a9950b8002131c45754009c7 Mon Sep 17 00:00:00 2001 From: Chao Sun Date: Tue, 12 Nov 2019 11:35:50 -0800 Subject: [PATCH] HDFS-14959: [SBNN read] access time should be turned off (#1706) Contributed by Chao Sun. --- .../src/site/markdown/ObserverNameNode.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ObserverNameNode.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ObserverNameNode.md index c4d22b5a46..16cb2be6a7 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ObserverNameNode.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ObserverNameNode.md @@ -194,6 +194,21 @@ few configurations to your **hdfs-site.xml**: 1048576 +* **dfs.namenode.accesstime.precision** -- whether to enable access + time for HDFS file. + + It is **highly recommended** to disable this configuration. If + enabled, this will turn a `getBlockLocations` call into a write call, + as it needs to hold write lock to update the time for the opened + file. Therefore, the request will fail on all Observer NameNodes and fall + back to the active eventually. As result, RPC performance will degrade. + + + dfs.namenode.accesstime.precision + 0 + + + ### New administrative command A new HA admin command is introduced to transition a Standby NameNode