在 HBase Shell 命令行正常查看十六进制编码的中文

Hbase查看十六进制代码:

hbase(main):050:0> scan 'test'
row                                              column+cell
 row-1                                           column=f:c1, timestamp=1587984555307, value=\xe7\xa6\x85\xe5\x85\x8b
 row-2                                           column=f:c2, timestamp=1587984555307, value=hbase\xe8\x80\x81\xe5\xba\x97
 row-3                                           column=f:c3, timestamp=1587984555307, value=hbase\xe5\xb7\xa5\xe4\xbd\x9c\xe7\xac\x94\xe8\xae\xb0
 row-4                                           column=f:c4, timestamp=1587984555307, value=\xe6\x88\x91\xe7\x88\xb1\xe4\xbd\xa0\xe4\xb8\xad\xe5\x9b\xbd\xef\xbc\x81
4 row(s) in 0.0190 seconds

用formatter 为tostring方法查看十六进制编码转为中文格式

hbase(main):051:0> scan 'test', {formatter => 'tostring'}
row                                              column+cell
 r
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值