[ https://issues.apache.org/jira/browse/HBASE-24275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Elser resolved HBASE-24275. -------------------------------- Resolution: Invalid Sorry for not being competent enough to reply in Chinese. It sounds like you need some help using the HBase shell and converting String and byte[]. We reserve Jira for concrete changes to HBase. Your question is something best served using the user mailing lists. If you didn't know, there is also a user...@hbase.apache.org which is designated for communication in Chinese. Please ask your for assistance there. Thank you. https://lists.apache.org/list.html?user...@hbase.apache.org > shell命令扫描无法使用 > ------------- > > Key: HBASE-24275 > URL: https://issues.apache.org/jira/browse/HBASE-24275 > Project: HBase > Issue Type: Bug > Components: shell > Affects Versions: 1.2.1 > Environment: hbase(main):001:0> scan > 'bill_2_20200216',\{LIMIT=>1,COLUMN=>['info:content:(org.apache.hadoop.hbase.util.Bytes).toString']} > ROW COLUMN+CELL > 18675205573_200A9992000603031_1 column=info:content, > timestamp=1584028631493, value=\xE4\xB8\xBB\xE4\xBB\xBB\xEF\xBC\x8C\xE6\x82 > _0216233441000000823069 > \xA8\xE5\xA5\xBD\xE3\x80\x82\xE6\x82\xA8\xE6\x98\x8E\xE5\xA4\xA9\xEF\xBC\x882\xE6\x9C\x8817\xE6\ > > x97\xA5\xE6\x98\x9F\xE6\x9C\x9F\xE4\xB8\x80\xEF\xBC\x89\xE4\xB8\x8A\xE5\x8D\x88\xE7\x9A\x84\xE8\ > > xA1\x8C\xE7\xA8\x8B\xE5\xAE\x89\xE6\x8E\x92\xE5\xA6\x82\xE4\xB8\x8B\xEF\xBC\x9A\x0A9:30\xE6\x97\ > > xB6\xEF\xBC\x8C\xE5\x9C\xA8\xE5\xB8\x82\xE5\x95\x86\xE5\x8A\xA1\xE5\xB1\x805\xE6\xA5\xBC\xE5\xA4 > > \xA7\xE4\xBC\x9A\xE8\xAE\xAE\xE5\xAE\xA4\xEF\xBC\x8C\xE6\x94\xB6\xE5\x90\xAC\xE6\x94\xB6\xE7\x9C > > \x8B\xE7\x9C\x81\xE6\x8E\xA8\xE8\xBF\x9B\xE5\xA4\x96\xE8\xB4\xB8\xE4\xBC\x81\xE4\xB8\x9A\xE5\xA4 > > \x8D\xE5\xB7\xA5\xE5\xA4\x8D\xE4\xBA\xA7\xE4\xBC\x9A\xE8\xAE\xAE\xE6\x9A\xA8\xE5\xA4\x96\xE8\xB4 > > \xB8\xE5\xBD\xA2\xE5\x8A\xBF\xE7\xA0\x94\xE5\x88\xA4\xE4\xBC\x9A\xE3\x80\x82\x0A\xE8\xAF\xB7\xE6 > > \x82\xA8\xE7\x9F\xA5\xE6\x82\x89\xE5\xB9\xB6\xE5\x8F\x82\xE5\x8A\xA0\xEF\xBC\x8C\xE8\xB0\xA2\xE8 > > \xB0\xA2\xE3\x80\x82\xEF\xBC\x88\xE8\x81\x94\xE7\xB3\xBB\xE4\xBA\xBA\xEF\xBC\x9A\xE6\x9D\xA8\xE4 > > \xBC\x9F\xE5\xBC\xBA\xEF\xBC\x8C\xE8\x81\x94\xE7\xB3\xBB\xE7\x94\xB5\xE8\xAF\x9D\xEF\xBC\x9A1831 > 8286014\xEF\xBC\x89 > 1 row(s) in 0.4480 seconds > hbase(main):002:0> get > 'bill_2_20200216','000000009100100000_13436291012_1_0216174022000000563234','info:content:toString' > COLUMN CELL > 0 row(s) in 0.0610 seconds > hbase(main):003:0> get > 'bill_2_20200216','18675205573_200A9992000603031_1_0216233441000000823069','info:content:toString' > COLUMN CELL > 0 row(s) in 0.0170 seconds > hbase(main):004:0> get 'bill_2_20200216',' > 18675205573_200A9992000603031_1_0216233441000000823069','info:content:toString' > COLUMN CELL > info:content timestamp=1584028631493, value=主任,您好。您明天(2月17日星期一)上午的行 > 安排如下: > 9:30时,在市商务局5楼大会议室,收听收看省推进外贸企业 > 工复产会议暨外贸形势研判会。 > 请您知悉并参加,谢谢。(联系人:杨 > ¼强,联系电话:18318286014) > Reporter: lacsar > Priority: Minor > > 在shell命令行查询字段值的时候想将byte转为string,用scan命令查询后没有效果,结果还是byte,但是get命令可以转为string -- This message was sent by Atlassian Jira (v8.3.4#803005)