iamcaoxudong commented on a change in pull request #1700: HDFS-14963. Add HDFS 
Client machine caching active namenode index mechanism.
URL: https://github.com/apache/hadoop/pull/1700#discussion_r347706707
 
 

 ##########
 File path: hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml
 ##########
 @@ -1637,6 +1637,23 @@
   </description>
 </property>
 
+<property>
+  <name>dfs.client.failover.cache-active.enabled</name>
+  <value>true</value>
+  <description>
+    Whether caching active namenode index is enabled.
+  </description>
+</property>
+
+<property>
+  <name>dfs.client.failover.cache-active.dir</name>
+  <value>${java.io.tmpdir}</value>
 
 Review comment:
   Thanks for reviewing, hadoop.tmp.dir was the default directory considering 
at the beginning, but later we found there may be a lot of cache files (seventy 
or eighty in our production environment), which will eventually cause 
hadoop.tmp.dir to look messy. Hadoop.tmp.dir has a neat directory structure 
originally, and I think we shoud keep it simple and tidy. How do you think?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to