Re: how to get the record number from hbase

2013-01-05 Thread Jean-Marc Spaggiari
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

Re: how to get the record number from hbase

2013-01-04 Thread Alok Kumar
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

Re: how to get the record number from hbase

2013-01-04 Thread hua beatls
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

Re: how to get the record number from hbase

2013-01-04 Thread 周梦想
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

Re: how to get the record number from hbase

2013-01-04 Thread Azuryy Yu
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 >