hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shashwat shriparv <dwivedishash...@gmail.com>
Subject Re: count the rows in a table from java
Date Thu, 26 Jan 2012 03:49:38 GMT
What i found out are as follows:

12.1.8. RowCounter

RowCounter is a utility that will count all the rows of a table. This is a
good utility to use as a sanity check to ensure that HBase can read all the
blocks of a table if there are any concerns of metadata inconsistency.

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

Note: caching for the input Scan is configured via
hbase.client.scanner.caching in the job configuration.




On Thu, Jan 26, 2012 at 12:57 AM, illuvatar

> Hi everyone, i have a problem.
> I'm trying to count for java the number of row in a table, but i can't do
> it!!
> I read about rowCounter, but i can't use it. Some one can tell me the code
> i
> have to write to count the row in a table??
> Thanks!!
> Andrea.
> --
> View this message in context:
> http://old.nabble.com/count-the-rows-in-a-table-from-java-tp33203283p33203283.html
> Sent from the HBase User mailing list archive at Nabble.com.

Shashwat Shriparv

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