Browse Source

HDFS-14652. Addendum: HealthMonitor connection retry times should be configurable. Contributed by Chen Zhang.

Wei-Chiu Chuang 5 years ago
parent
commit
8cef9f89f4

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

@@ -2742,6 +2742,15 @@
   </description>
   </description>
 </property>
 </property>
 
 
+<property>
+  <name>ha.health-monitor.rpc.connect.max.retries</name>
+  <value>1</value>
+  <description>
+    The number of retries on connect error when establishing RPC proxy
+    connection to NameNode, used for monitorHealth() calls.
+  </description>
+</property>
+
 <property>
 <property>
   <name>ha.health-monitor.rpc-timeout.ms</name>
   <name>ha.health-monitor.rpc-timeout.ms</name>
   <value>45000</value>
   <value>45000</value>