7.5. RowCounter Example

The included RowCounter MapReduce job uses TableInputFormat and does a count of all rows in the specified table. To run it, use the following command:

$ ./bin/hadoop jar hbase-X.X.X.jar

This will invoke the HBase MapReduce Driver class. Select rowcounter from the choice of jobs offered. This will print rowcouner usage advice to standard output. Specify the tablename, column to count, and output directory. If you have classpath errors, see Section 7.1, “HBase, MapReduce, and the CLASSPATH”.

comments powered by Disqus