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");

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM