Questions tagged [hbase-shell]

hbase-shell is a CLI for HBase implemented in JRuby. Use this tag for HBase questions specific to the shell. For general HBase questions use [hbase] instead.

hbase-shell is a CLI for HBase implemented in JRuby.

References

41 questions
2
votes
1 answer

HBase: Records returned where field is not present

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 …
Dinesh
  • 1,135
  • 2
  • 15
  • 22
2
votes
1 answer

HBase Filters: ColumnPrefixFIlter and SingleColumnValueFilter

I have an HBase table, person. I'm using ColumnPrefixFilter and SingleColumnValueFilter to fetch details from HBase table For suppose, I have entries like below- ROW_KEY COLUMN+CELL p1 column='attr:id',value=p1_03 p1 …
Dinesh
  • 1,135
  • 2
  • 15
  • 22
2
votes
1 answer

How to change namespace of a table in HBase

I have a table in default namespace in HBase. I want it change its namespace. Is there a command why which this can be done on HBase shell? I want to skip export and import HBase utility.
Surabhi Mundra
  • 377
  • 1
  • 12
1
vote
1 answer

Not able to delete a Row which has a timestamp Long.MAX_VALUE from Hbase

Somehow I ended up adding a row to Hbase with timestamp as Long.MAX_VALUE. Now Either not able to put with less than that Long.MAX_VALUE to the same key or delete that inserted row. What cause this issue Once I succesfully added this row (For some…
Shashank Gb
  • 902
  • 1
  • 6
  • 14
1
vote
0 answers

Hbase replication Issue

I am using HDP distirbution.I have hbase replication enabled.Firstly it was working fine,but after sometime one RS replication was stucked and in logs I find: regionserver.ReplicationSourceWALReader: Failed to read stream of replication entries…
Shubham
  • 11
  • 1
1
vote
1 answer

Hbase shell Filter with Prefix

I have to get all the entries from a HBASE table which have values substring of the given input. For example if my table is like below: Table | Family | ColumnQualifier | Value exp | family | column | 1000xyz exp | …
1
vote
2 answers

How to use hbase-shell scan command when row key is hashed

How do you use the hbase shell scan command when your row key is hashed? I have a dummy instance working on a sandbox (where the row key is not hashed) with the following command. scan 'tableName' , {ROWPREFIXFILTER => 'myrowStartValue'} and…
IncompleteCoder
  • 153
  • 1
  • 12
1
vote
1 answer

HBase Shell Almost 100x Faster Than Restful Endpoint For Prefix Filter

If I run a scan with a prefix filter on the HBase shell, I get a response in less than 1 second no matter what I use for a prefix. (0 vs 9 or "a" vs "z" makes no difference in speed of response). However, when I make the same query from the…
Nate Caleb
  • 11
  • 4
1
vote
2 answers

Convert String to Ruby byte array when using Hbase Shell

I want to convert a String to a Ruby byte array. I have a String and saving it in Hbase as binary byte array. Need to scan with some filter on key which is a binary byte array. Have a String like "U92w8GSBJ2BiHzGg" and need its representation like…
minhas23
  • 9,291
  • 3
  • 58
  • 40
1
vote
1 answer

HBase Shell - scan table filter by column contains string

Is it possible to search for a record in hbase shell by searching for a string inside of a column? For instance, let's say my hbase table has a key "1" with column "col1" and the value is "something something yeah yeah hey what yup" i want to return…
adbar
  • 438
  • 1
  • 8
  • 18
1
vote
1 answer

Save all hbase table names to the bash array

I would like to store the names of all my hbase tables in an array inside my bash script. All sed hotfixes are acceptable. All better solutions (like readarray it from some zookeeper file I am not aware of) are acceptable I have two hbase tables…
wscourge
  • 10,657
  • 14
  • 59
  • 80
1
vote
1 answer

Hbase shell command that shows table configurations.

I created a table in HBase create 'test', 'x', 'y', 'z', {NUMREGIONS => 10, SPLITALGO => 'UniformSplit'} When I issue describe 'test' hbase(main):016:0> describe 'test' Table test is ENABLED test COLUMN FAMILIES DESCRIPTION {NAME => 'x', BLOOMFILTER…
Îsh
  • 196
  • 5
  • 13
1
vote
1 answer

How to get manually pre-splitted region number used while creating table in hbase?

I am looking into a table with 126 regions right now through hbase shell. But I am unable to find out that how much region was manually defined during time of table creation. Is there any query I can execute and get that detail?
Aamir
  • 738
  • 2
  • 17
  • 41
0
votes
1 answer

How do we rename or copy the existing Hbase table in MapR without snapshot?

I am trying to rename existing HBase table but MapR is not supporting any of the existing solutions that I googled. Example export, snapshot etc. Can someone please post the correct steps to rename the existing HBase table in MapR and take a backup…
swathi
  • 31
  • 5
0
votes
0 answers

unable to lunch hbase shell

i m using hbase-2.4.15 in standalone modeon windows 10,when i try hbase shell command it gives me this error This file has been superceded by packaging our ruby files into a jar and using jruby's bootstrapping to invoke them. If you need to …