Hi Hua,
The record number is not an information stored with the row itself. So
the idea here is to count how many rows are there before the one you
are looking at.
And if you insert one or some before, you will have to recount. At the
end, this can be still a costly information.
Are you sure you
Hi,
See here https://blogs.apache.org/hbase/entry/coprocessor_introduction for
Coprocessor Introduction.
It's the first place you should look for . It has couple of example as well
**Happy New Year**
Regards,
Alok
On Sat, Jan 5, 2013 at 12:42 PM, hua beatls wrote:
> Hi,
>do you have a
Hi,
do you have any guide about copreccesor? how to use it?
Thanks!
beatls
On Sat, Jan 5, 2013 at 8:51 AM, Azuryy Yu wrote:
> Coprocessor: rowcount
hi hua,
using command
$ bin/hbase org.apache.hadoop.hbase.mapreduce.RowCounter
[ ...]
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.0
using Coprocessor: rowcount
On Sat, Jan 5, 2013 at 2:23 AM, hua beatls wrote:
> Hi,
> is there any easy way to know how many records in the hbase, hive or
> coprocessor?
>
> Thanks!
>
> beatls
>