Recently tested HBase shell, encountered a Chinese display coding problem, and finally solved the problem through Python, the following:
HBase (main): 015:0*scan ' fr_test_hbase:test_log1 ' ROW COLUMN+CELL 10001 Column=info:name, timestamp=1500448006065, value=tmr\xe4\xbd\xa01000110002 column=info:name, timestamp=1500448006065, value=byj\xe4\xbd\xa01000210003 column=info:name, timestamp=1500448006065, value=hqg\xe4\xbd\xa01000310004 Column=info:name, timestamp=1500448006065, value=xbi\xe4\xbd\xa01000410005 Column=info:name, timestamp=1500448006065, value=bcj\xe4\xbd\xa01000510006 Column=info:name, timestamp=1500448006065, value=blj\xe4\xbd\xa01000610007 Column=info:name, timestamp=1500448006065, value=awr\xe4\xbd\xa01000710008 Column=info:name, timestamp=1500448006065, value=vlq\xe4\xbd\xa01000810009 Column=info:name, timestamp=1500448006065, value=gud\xe4\xbd\xa01000910010 Column=info:name, timestamp=1500449881577, value=lms\xe7\x8e\x8b
Copy the value to the Python command line with the following actions:
Print ' ***\xe7\x8e\x8b '. Decode ('utf-8')* * * king print' '. Decode ('utf-8')
OK, so you can display Chinese.
HBase Shell encoding Display Chinese