当试图通过我们集群中的restapi(cdh 5.14.0 | hbase 1.2.0-cdh5.14.0)扫描hbase时,扫描仪的 batch
属性不起作用,总是逐个返回记录。put请求如下:
http://hbase-rest-server:20550/our-table/scanner/
扫描仪定义如下:
<Scanner batch="1000" startRow="YWFh" stopRow="YmJi=" />
使用扫描仪 id
在响应位置中出现的按顺序在每个调用中返回一条记录:
http://hbase-rest-server:20550/our-table/scanner/1532043234571885278a
为什么? batch="1000"
不考虑吗?我错过了什么?
1条答案
按热度按时间5q4ezhmt1#
在application/octet stream选项中,扫描程序将忽略批处理参数。将accept header设置为text/xml或任何其他选项。
https://hbase.apache.org/1.2/apidocs/org/apache/hadoop/hbase/rest/package-summary.html