从 HBASE 卷曲时出现错误数据

Wrong data coming out when curl from HBASE

从 hbase shell(ssh putty) 扫描 table 扫描 'mytable'] 显示正确的值

但是如果我从 ssh 发出命令, curl -H "Accept: application/json" http://localhost:54321/mytable/first/cf - 它显示所有单元格,但数据是垃圾。例如:"Zmlyc3Q=" 而不是 "first" 注意:我在 Vbox 上使用 hortonworks 沙箱。

从 REST API 检索到的所有内容(行键、系列、列和值)都是 base64 编码的,您必须对其进行解码。

伪代码:

base64("first") == "Zmlyc3Q="