Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to list all row keys in an hbase table?

Tags:

hbase

Can anybody tell me, how to list all row keys in an hbase table?

like image 486
hbase_user Avatar asked Mar 07 '11 09:03

hbase_user


People also ask

What is row key in HBase?

A row key is a unique identifier for the table row. An HBase table is a multi-dimensional map comprised of one or more columns and rows of data. You specify the complete set of column families when you create an HBase table.

Which code should I use to list all tables in HBase?

Hey, list is the command that is used to list all the tables in HBase.

Which command gives a row or cell contents present in the table in HBase?

put - Puts a cell value at a specified column in a specified row in a particular table. get - Fetches the contents of row or a cell.


1 Answers

The HBase shell could be used to list all the row keys:

count 'table_name', { INTERVAL => 1 } 
like image 175
Haimei Avatar answered Sep 27 '22 22:09

Haimei