以下是一些timeout的例子
name value description
dfs.heartbeat.interval 3 Determines datanode heartbeat interval in seconds.
dfs.namenode.stale.datanode.interval 30000 Default time interval for marking a datanode as "stale", i.e., if the namenode has not received heartbeat msg from a datanode for more than this time interval, the datanode will be marked and treated as "stale" by default. The stale interval cannot be too small since otherwise this may cause too frequent change of stale states. We thus set a minimum stale interval value (the default value is 3 times of heartbeat interval) and guarantee that the stale interval cannot be less than the minimum value. A stale data node is avoided during lease/block recovery. It can be conditionally avoided for reads (see dfs.namenode.avoid.read.stale.datanode) and for writes (see dfs.namenode.avoid.write.stale.datanode).
dfs.heartbeat.recheck.interval 15 Determines datanode heartbeat interval in seconds.
dfs.qjournal.start-segment.timeout.ms 20000 Timeout when starting a new edit segment with JournalNodes. This only applies when NameNode high availability is enabled.
dfs.qjournal.select-input-streams.timeout.ms 20000 Timeout when selecting input streams on JournalNodes. This only applies when NameNode high availability is enabled.
dfs.qjournal.write-txns.timeout.ms 20000 Timeout when writing edits to a JournalNode. This only applies when NameNode high availability is enabled.
Hbase角度:
zookeeper.session.timeout 60000 ZooKeeper session timeout in milliseconds. HBase passes this to the ZooKeeper quorum as the suggested maximum time for a session. See http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#ch_zkSessions The client sends a requested timeout, the server responds with the timeout that it can give the client.
Zookeeper角度
tickTime 2000 The basic time unit in milliseconds used by ZooKeeper. It is used to do heartbeats and the minimum session timeout will be twice the tickTime.
initLimit 10 Amount of time, in ticks, to allow followers to connect and sync to a leader. Increase this value as needed, if the amount of data managed by ZooKeeper is large.
Synctime 5 Amount of time, in ticks, to allow followers to sync with ZooKeeper. If followers fall too far behind a leader, they are dropped