Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce, mail # dev - Limiting the usage of counters

Copy link to this message
Limiting the usage of counters
Praveen Sripati 2011-12-24, 04:11

I find the below code in 203, 205 and 1.0 and not in trunk and other
releases. Is it not in trunk or done some other way? Also, noticed that
some of the parameters are not configurable and hard-coded.

/** limit on the size of the name of the group **
  private static final int GROUP_NAME_LIMIT = 128;
  /** limit on the size of the counter name **/
  private static final int COUNTER_NAME_LIMIT = 64;

  private static final JobConf conf = new JobConf();
  /** limit on counters **/
  public static int MAX_COUNTER_LIMIT     conf.getInt("mapreduce.job.counters.limit", 120);

  /** the max groups allowed **/
  static final int MAX_GROUP_LIMIT = 50;