hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-559) MR example job to count table rows
Date Fri, 04 Apr 2008 05:35:25 GMT

    [ https://issues.apache.org/jira/browse/HBASE-559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585402#action_12585402

stack commented on HBASE-559:

To run you'd do something like the following (Presuming hbase including these new classes
is in the hadoop CLASSPATH).

./bin/hadoop org.apache.hadoop.hbase.mapred.Driver rowcounter <outputdir> <tablename>
<column1> [<column2>....]

The attached patch has not been properly tested.

> MR example job to count table rows
> ----------------------------------
>                 Key: HBASE-559
>                 URL: https://issues.apache.org/jira/browse/HBASE-559
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>         Attachments: 559.patch
> The Lars' import is a little messy; he's not sure how many records were imported.  Running
a select takes a couple of hours.  He happens to have an idle MR cluster standing by.  An
example MR job that just did a count of records would be generally useful.  Could even output
row keys so you'd have a list of what made it in.   Later, if this tool becomes popular with
derivatives and similiars, we can bundle a jar of MR jobs to run against your tables that
can answer common queries and that are amenable to subclassing/modification.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message