Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

HBase Row Counter

avatar
Explorer

I am trying to get count the rows in a HBase table using org.apache.hadoop.hbase.mapreduce.RowCounter. How can I modify the mapreduce.job.cache.files configuration that is set in job.xml?

1 REPLY 1

avatar
Master Collaborator

You can pass that as command line argument

 

Example:

hbase org.apache.hadoop.hbase.mapreduce.RowCounter -Dmapreduce.job.cache.files=/test 'hbase_table_t10'

hbase org.apache.hadoop.hbase.mapreduce.RowCounter -Dmapreduce.job.cache.files=/test '<table_name>'