Hbase API 最佳实践_读

1  Scan.setCaching(N), 扫描时使用缓存,减小客户端到服务端RPC次数。同时注意:客户端和服务端的缓存使用都会增长。缓存

   // Set the number of rows for caching that will be passed to scanners.this

2  关闭ResultScannersed

3  块缓存使用方法:  Get/Scan.setCacheBlocks(true/false); //Set whether blocks should be cached for this Scan.方法

   当在MR中使用扫描时,应当设为false客户端

相关文章
相关标签/搜索