Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list all row keys in an hbase table?

How do I list all row keys in an hbase table?

I need to do this using PHP with a REST interface.

like image 252
hbase_user Avatar asked Dec 08 '25 01:12

hbase_user


1 Answers

If you are listing all of the keys in an HBase table, then you are using the wrong tool. HBase is for large data systems where it is impractical to list all of the keys.

What may be more sensible is to start at a given key and list the next N keys (for values of N less than 10K). There are nice Java interfaces for doing this type of thing with a scan -- setting a start key and/or an end key.

Most HBase functionality is exposed via the Thrift interface. I would suggest looking there

like image 95
David Avatar answered Dec 11 '25 01:12

David



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!