hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 周梦想 <abloz...@gmail.com>
Subject Re: how to get the record number from hbase
Date Sat, 05 Jan 2013 02:49:51 GMT
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 <azuryyyu@gmail.com>

> using Coprocessor: rowcount
>
>
> On Sat, Jan 5, 2013 at 2:23 AM, hua beatls <beatls@gmail.com> wrote:
>
> > Hi,
> >      is there any easy way to know how many records in the hbase, hive or
> > coprocessor?
> >
> >      Thanks!
> >
> >      beatls
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message