MAPREDUCE-7319. Log list of mappers at trace level in ShuffleHandler audit log.
Contributed by Jim Brennan.
This commit is contained in:
parent
fc5f241535
commit
462561654b
@ -1170,8 +1170,13 @@ protected void populateHeaders(List<String> mapIds, String jobId,
|
|||||||
StringBuilder sb = new StringBuilder("shuffle for ");
|
StringBuilder sb = new StringBuilder("shuffle for ");
|
||||||
sb.append(jobId).append(" reducer ").append(reduce);
|
sb.append(jobId).append(" reducer ").append(reduce);
|
||||||
sb.append(" length ").append(contentLength);
|
sb.append(" length ").append(contentLength);
|
||||||
sb.append(" mappers: ").append(mapIds);
|
if (AUDITLOG.isTraceEnabled()) {
|
||||||
AUDITLOG.debug(sb.toString());
|
// For trace level logging, append the list of mappers
|
||||||
|
sb.append(" mappers: ").append(mapIds);
|
||||||
|
AUDITLOG.trace(sb.toString());
|
||||||
|
} else {
|
||||||
|
AUDITLOG.debug(sb.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user