hbase-shell

HBase Shell Logging

白昼怎懂夜的黑 提交于 2020-06-27 08:22:09
问题 When using the HBase shell, I'm getting a great deal of logging, including INFO and DEBUG messages. While this is interesting in terms of learning HBase internals, it is quite verbose and can bury the output. I've tried changing the logging levels in a number of different ways, including as described here, and while some of the warnings do disappear, I continue to get a large number of INFO and DEBUG messages, i.e.: 18:50:49.500 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment

HBase: Records returned where field is not present

自古美人都是妖i 提交于 2020-01-13 20:20:51
问题 I have a person table in HBase like below - ROW_KEY COLUMN+CELL dinesh column='details:code',value=dr-01 dinesh column='status:is_error',value=false dinesh column='time:date_created',value=1553747864740 dinesh column='time:last_updated',value=1553747864740 alex column='details:code',value=al-01 alex column='time:date_created',value=1553747786521 alex column='time:last_updated',value=1553747786521 I want to fetch only the records where is_error field is false. This attribute will be present

What are the non-hex characters in HBase Shell RowKey?

与世无争的帅哥 提交于 2019-12-30 04:41:26
问题 I am saving my key as a byte-array. In HBase Shell when I look at my key I see non-hex values...I do not have any encoding enabled, I do not have any compression enabled. Here is a sample...what is VNQ? what is BBW? I'm guessing there is some sort of encoding going on? \xFB\xC6\xE8\x03\xF0VNQ\x8By\xF6\x89D\xC1\xBBW\x00\x00\x00\x00\x00\x00\x01\xF3\x00\x00\x00\x00\x00\x07\xA1\x1F 回答1: HBase shell uses something called a "binary string" (Escaped hexadecimal) representation of byte arrays to

Export data from HBase shell

烈酒焚心 提交于 2019-12-22 04:40:24
问题 Im trying to export data from HBase Shell to a text file which I can parse, and add to a msysql db. I am currently using the following command: echo "scan 'registration',{COLUMNS=>'registration:status'}" | hbase shell > registration.txt which exports everything from the hbase shell to the registration.txt. How can I remove the shell intro, and the summary and just append the rows of data to the text file: Eg: Shell into I want to omit: HBase Shell; enter 'help<RETURN>' for list of supported

HBase Shell hangs / freezes

喜夏-厌秋 提交于 2019-12-12 16:05:23
问题 I've installed HBase 0.92.1-cdh4.0.1 on Ubuntu 12.04 in Pseudo-Distributed mode. hbase-master , hbase-regionserver and zookeeper-server are running on this machine; the HDFS is running on another machine (property hbase.rootdir set accordingly). Now I have a problem with the "hbase shell": whenever I submit a create table statement like create 'tbl1', {NAME => 'd', COMPRESSION => 'GZ'} the shell hangs (it does not return anything; waits forever) and I have to kill it with ctrl+c. However the

HBASE row prefix scan in reverse order in hbase

纵然是瞬间 提交于 2019-12-07 22:27:59
问题 I have a row key of the form: <name>--<zero-padded timestamp> Using HBASE shell I want to find last 15 entries with the prefix . scan 'mytable', {LIMIT => 15, ROWPREFIXFILTER => 'name' } Gives me the first 15, but: scan 'mytable', {LIMIT => 15, REVERSED => TRUE, ROWPREFIXFILTER => 'name'} returns zero results... What is the syntax for such a request? Is it possible, or do I have to do something cheesy like use MAXINT-timestamp as my rowkey to manually reverse the key ordering? 回答1: I can

HBase: Records returned where field is not present

六月ゝ 毕业季﹏ 提交于 2019-12-06 07:21:20
I have a person table in HBase like below - ROW_KEY COLUMN+CELL dinesh column='details:code',value=dr-01 dinesh column='status:is_error',value=false dinesh column='time:date_created',value=1553747864740 dinesh column='time:last_updated',value=1553747864740 alex column='details:code',value=al-01 alex column='time:date_created',value=1553747786521 alex column='time:last_updated',value=1553747786521 I want to fetch only the records where is_error field is false. This attribute will be present only in certain rows. I tried to fetch it using SingleColumnValueFilter but its giving me all the records

Export data from HBase shell

喜夏-厌秋 提交于 2019-12-05 06:53:32
Im trying to export data from HBase Shell to a text file which I can parse, and add to a msysql db. I am currently using the following command: echo "scan 'registration',{COLUMNS=>'registration:status'}" | hbase shell > registration.txt which exports everything from the hbase shell to the registration.txt. How can I remove the shell intro, and the summary and just append the rows of data to the text file: Eg: Shell into I want to omit: HBase Shell; enter 'help<RETURN>' for list of supported commands. Type "exit<RETURN>" to leave the HBase Shell Version 0.94.5-mapr, Wed May 1 7:42:07 PDT 2013