}
TezCounters tezCounters = status.getVertexCounters();
counters = Maps.newHashMap();
Iterator<CounterGroup> grpIt = tezCounters.iterator();
while (grpIt.hasNext()) {
CounterGroup grp = grpIt.next();
Iterator<TezCounter> cntIt = grp.iterator();
Map<String, Long> cntMap = Maps.newHashMap();
while (cntIt.hasNext()) {
TezCounter cnt = cntIt.next();
cntMap.put(cnt.getName(), cnt.getValue());
}
counters.put(grp.getName(), cntMap);
}
if (counters.get(FS_COUNTER_GROUP) != null &&
counters.get(FS_COUNTER_GROUP).get(PigStatsUtil.HDFS_BYTES_READ) != null) {
hdfsBytesRead = counters.get(FS_COUNTER_GROUP).get(PigStatsUtil.HDFS_BYTES_READ);