MAPREDUCE-4008. ResourceManager throws MetricsException on start up saying QueueMetrics MBean already exists (Devaraj K via tgraves)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1326707 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fccbc53357
commit
24d6a8b29c
|
@ -241,6 +241,9 @@ Release 2.0.0 - UNRELEASED
|
|||
MAPREDUCE-4147. YARN should not have a compile-time dependency on HDFS.
|
||||
(tomwhite)
|
||||
|
||||
MAPREDUCE-4008. ResourceManager throws MetricsException on start up
|
||||
saying QueueMetrics MBean already exists (Devaraj K via tgraves)
|
||||
|
||||
Release 0.23.3 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -185,8 +185,6 @@ public class FifoScheduler implements ResourceScheduler, Configurable {
|
|||
@Override
|
||||
public synchronized void setConf(Configuration conf) {
|
||||
this.conf = conf;
|
||||
metrics = QueueMetrics.forQueue(DEFAULT_QUEUE_NAME, null, false, conf);
|
||||
activeUsersManager = new ActiveUsersManager(metrics);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -223,6 +221,9 @@ public class FifoScheduler implements ResourceScheduler, Configurable {
|
|||
Resources.createResource(conf.getInt(MINIMUM_ALLOCATION, MINIMUM_MEMORY));
|
||||
this.maximumAllocation =
|
||||
Resources.createResource(conf.getInt(MAXIMUM_ALLOCATION, MAXIMUM_MEMORY));
|
||||
this.metrics = QueueMetrics.forQueue(DEFAULT_QUEUE_NAME, null, false,
|
||||
conf);
|
||||
this.activeUsersManager = new ActiveUsersManager(metrics);
|
||||
this.initialized = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue