hbase设置扫描超时和重试次数
扫描超时默认时1分钟,通过以下参数设置
<property> <name>hbase.client.scanner.timeout.period</name> <value>60000</value> <description>Client scanner lease period in milliseconds.</description> </property>
扫描超时重试次数,默认
<property> <name>hbase.client.retries.number</name> <value>35</value> </property>
API设置
Configuration conf = HBaseConfiguration.create(); //设置扫描超时 conf.set("hbase.client.scanner.timeout.period","1"); //设置重试次数 conf.set("hbase.client.retries.number", "0");