Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HBase Row Counter

HBase Row Counter

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
Highlighted

Re: HBase Row Counter

Expert Contributor

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>'

 

Don't have an account?
Coming from Hortonworks? Activate your account here