private long getMapContainerSize(HadoopApplicationData data) {
    try {
      // Trying to get container size from tez config, if not found trying from MapReduce config
      long mapContainerSize = data.getConf().containsKey(TEZ_CONTAINER_CONFIG) ? Long.parseLong(data.getConf().getProperty(TEZ_CONTAINER_CONFIG)) : -1;
      return mapContainerSize > 0 ? mapContainerSize : Long.parseLong(data.getConf().getProperty(MAP_CONTAINER_CONFIG));
    } catch ( NumberFormatException ex) {
      return CONTAINER_MEMORY_DEFAULT_BYTES;
    }
  }
Aggregates task level metrics to application
app/com/linkedin/drelephant/tez/TezMetricsAggregator.java