RowCounter is s mapreduce program. After the program completes execution of
the job, it returns information about that job, including job counters.
RowCounter includes its counts in the job counters, so they're easily
accessed programmatically from the returned object. It's not a ResultSet,
but it should work none the less.

On Friday, June 26, 2015, Riesland, Zack <[email protected]> wrote:

>  I wrote a Java program that runs nightly and collects metrics about our
> hive tables.
>
>
>
> I would like to include HBase tables in this as well.
>
>
>
> Since select count(*) is slow and not recommended on Phoenix, what are my
> alternatives from Java?
>
>
>
> Is there a way to call org.apache.hadoop.hbase.mapreduce.RowCounter from
> java and get results in some kind of result set?
>
>
>
> Thanks for any info!
>
>
>
>
>

Reply via email to