Sunday, January 5, 2014

2 Ways to Count Rows in HBase

There are 2 ways to count the number of rows in an HBase table:

Run the following from the linux command line:
$ hbase org.apache.hadoop.hbase.mapreduce.RowCounter MyTableName

Run the following from the hbase shell (which is accessible from the Hue shell):
> count 'MyTableName'


1 comment: