HBase REST API批处理属性不起作用

问题描述 投票:0回答:1

当尝试通过我们的集群中的REST API(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"?我错过了什么?

rest hbase cloudera
1个回答
0
投票

在application / octet-stream选项中,scaner将忽略批处理参数。将Accept标头设置为text / xml或任何其他选项。

https://hbase.apache.org/1.2/apidocs/org/apache/hadoop/hbase/rest/package-summary.html

© www.soinside.com 2019 - 2024. All rights reserved.