我们连接到HBase并使用Java中的HBase客户端库执行get方法。如果将超时值设置为40ms,并且get方法花费100ms,则100ms之后将引发超时异常。但是不是40ms吗?
hbaseConfiguration.set("hbase.client.operation.timeout", "40");
hbaseConfiguration.set("hbase.rpc.timeout", "50");
hbaseConfiguration.set("hbase.client.retries.number", "1");
hbaseConfiguration.set("hbase.client.pause", "0");
hbaseConfiguration.set("hbase.zookeeper.recoverable.waittime", "40");
hbaseConfiguration.set("hbase.rpc.shortoperation.timeout", "40");
hbaseConfiguration.set("zookeeper.session.timeout", "40");
hbaseConfiguration.set("zookeeper.recovery.retry", "1");
hbaseConfiguration.set("hbase.ipc.client.socket.timeout.connect", "40");
hbaseConfiguration.set("hbase.lease.recovery.dfs.timeout", "40");