YARN-3350. YARN RackResolver spams logs with messages at info level. Contributed by Wilfred Spiegelenburg
This commit is contained in:
parent
fe5c23b670
commit
7f1e2f9969
|
@ -68,6 +68,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
YARN-3356. Capacity Scheduler FiCaSchedulerApp should use ResourceUsage to
|
YARN-3356. Capacity Scheduler FiCaSchedulerApp should use ResourceUsage to
|
||||||
track used-resources-by-label. (Wangda Tan via jianhe)
|
track used-resources-by-label. (Wangda Tan via jianhe)
|
||||||
|
|
||||||
|
YARN-3350. YARN RackResolver spams logs with messages at info level.
|
||||||
|
(Wilfred Spiegelenburg via junping_du)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
YARN-3339. TestDockerContainerExecutor should pull a single image and not
|
YARN-3339. TestDockerContainerExecutor should pull a single image and not
|
||||||
|
|
|
@ -102,11 +102,15 @@ public class RackResolver {
|
||||||
String rName = null;
|
String rName = null;
|
||||||
if (rNameList == null || rNameList.get(0) == null) {
|
if (rNameList == null || rNameList.get(0) == null) {
|
||||||
rName = NetworkTopology.DEFAULT_RACK;
|
rName = NetworkTopology.DEFAULT_RACK;
|
||||||
LOG.info("Couldn't resolve " + hostName + ". Falling back to "
|
if (LOG.isDebugEnabled()) {
|
||||||
+ NetworkTopology.DEFAULT_RACK);
|
LOG.debug("Couldn't resolve " + hostName + ". Falling back to "
|
||||||
|
+ NetworkTopology.DEFAULT_RACK);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
rName = rNameList.get(0);
|
rName = rNameList.get(0);
|
||||||
LOG.info("Resolved " + hostName + " to " + rName);
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("Resolved " + hostName + " to " + rName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return new NodeBase(hostName, rName);
|
return new NodeBase(hostName, rName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue