Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

More than 120 counters in hadoop

There's a limit for Hadoop counter size. It's 120 by default. I try to use the configuration "mapreduce.job.counters.limit" to change that, but it doesn't work. I've seen the source code. It's like the instance of JobConf in class "org.apache.hadoop.mapred.Counters" is private. Have anybody seen that before? What's your solution? THX :)

like image 213
size.of.world Avatar asked Aug 27 '12 10:08

size.of.world


1 Answers

You can override that property in mapred-site.xml on your JT, TT, client nodes but make sure that this will be a system-wide modification:

<configuration>
  ...
  <property>
    <name>mapreduce.job.counters.limit</name>
    <value>500</value>
  </property>
  ...
</configuration>

Then restart the mapreduce service on your cluster.

like image 55
Lorand Bendig Avatar answered Sep 21 '22 17:09

Lorand Bendig