Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> how to get the record number from hbase


+
hua beatls 2013-01-04, 18:23
+
Azuryy Yu 2013-01-05, 00:51
+
hua beatls 2013-01-05, 07:12
+
Alok Kumar 2013-01-05, 07:47
+
Jean-Marc Spaggiari 2013-01-05, 13:25
Copy link to this message
-
Re: how to get the record number from hbase
hi hua,
using command

$ bin/hbase org.apache.hadoop.hbase.mapreduce.RowCounter <tablename>
[<column1> <column2>...]

it will report you the ROWS.
or you can write a MapReduce tool yourself to count the rows.

or you can run command in hbase shell:
hbase(main):005:0> scan 't1',FILTER=>"FirstKeyOnlyFilter()"
...
6 row(s) in 0.0730 seconds
this is a alternative choice for row count.

see HBase Reference Guide Chinese version: http://abloz.com/hbase/book.html

Andy

2013/1/5 Azuryy Yu <[EMAIL PROTECTED]>

> using Coprocessor: rowcount
>
>
> On Sat, Jan 5, 2013 at 2:23 AM, hua beatls <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >      is there any easy way to know how many records in the hbase, hive or
> > coprocessor?
> >
> >      Thanks!
> >
> >      beatls
> >
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB