Support Questions

Find answers, ask questions, and share your expertise

What is the unit for the default ha.failover-controller.active-standbyelector.zk.op.retries setting? Is it 120 retries or 120 sec between retries?

avatar

Under "NameNode High Availability" of the Apache Ambari Operations document, one of the steps was to adjust the ZooKeeper Failover Controller retries setting for your environment. We were to "Set ha.failover-controller.active-standbyelector. zk.op.retries=120." (Actually this was already done automatically when we "Enable NameNode HA"). My customer is curious to know the unit for the default ha.failover-controller.active-standbyelector.zk.op.retries setting? Is it 120 retries or 120 sec(or ms) between retries?

1 REPLY 1

avatar

@Yew Hoong Chia Is 120 retries count. Not ms/seconds unit but count of number of retry times it will attempt.

From org.apache.hadoop.fs.CommonConfigurationKeys:

/** number of zookeeper operation retry times in ActiveStandbyElector */  
public static final String HA_FC_ELECTOR_ZK_OP_RETRIES_KEY ="ha.failover-controller.active-standby-elector.zk.op.retries";  
public static final int HA_FC_ELECTOR_ZK_OP_RETRIES_DEFAULT = 3;

HTH