HDFS-5336. DataNode should not output StartupProgress metrics. Contributed by Akira Ajisaka.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1533183 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9d24715a89
commit
1fde8bcc85
|
@ -361,6 +361,9 @@ Release 2.3.0 - UNRELEASED
|
||||||
|
|
||||||
HDFS-5375. hdfs.cmd does not expose several snapshot commands. (cnauroth)
|
HDFS-5375. hdfs.cmd does not expose several snapshot commands. (cnauroth)
|
||||||
|
|
||||||
|
HDFS-5336. DataNode should not output 'StartupProgress' metrics.
|
||||||
|
(Akira Ajisaka via cnauroth)
|
||||||
|
|
||||||
Release 2.2.1 - UNRELEASED
|
Release 2.2.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -270,10 +270,6 @@ public class NameNode implements NameNodeStatusMXBean {
|
||||||
|
|
||||||
static NameNodeMetrics metrics;
|
static NameNodeMetrics metrics;
|
||||||
private static final StartupProgress startupProgress = new StartupProgress();
|
private static final StartupProgress startupProgress = new StartupProgress();
|
||||||
static {
|
|
||||||
StartupProgressMetrics.register(startupProgress);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Return the {@link FSNamesystem} object.
|
/** Return the {@link FSNamesystem} object.
|
||||||
* @return {@link FSNamesystem} object.
|
* @return {@link FSNamesystem} object.
|
||||||
*/
|
*/
|
||||||
|
@ -485,6 +481,7 @@ public class NameNode implements NameNodeStatusMXBean {
|
||||||
loginAsNameNodeUser(conf);
|
loginAsNameNodeUser(conf);
|
||||||
|
|
||||||
NameNode.initMetrics(conf, this.getRole());
|
NameNode.initMetrics(conf, this.getRole());
|
||||||
|
StartupProgressMetrics.register(startupProgress);
|
||||||
|
|
||||||
if (NamenodeRole.NAMENODE == role) {
|
if (NamenodeRole.NAMENODE == role) {
|
||||||
startHttpServer(conf);
|
startHttpServer(conf);
|
||||||
|
|
Loading…
Reference in New Issue