HBase Shell encoding Display Chinese

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.