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