在通过hbase shell查看中文值时,是unicode编码格式,使得直接查看中文值不太方便。如果要查看需要把unicode编码进行decode,下面是我比较常用的两种方式:
- python decode方式
前提:需要hbase 客户端上安装python
echo “get ‘test’,’testKey’” | hbase shell | grep “cf” | awk -F ‘=’ ‘{print “print \047” 1,
在通过hbase shell查看中文值时,是unicode编码格式,使得直接查看中文值不太方便。如果要查看需要把unicode编码进行decode,下面是我比较常用的两种方式: