@Override // NameNodeStatusMXBean public String getNNRole() { String roleStr = ""; NamenodeRole role = getRole(); if (null != role) { roleStr = role.toString(); } return roleStr; }
private void checkNNStartup() throws IOException { if (!this.nn.isStarted()) { String message = NameNode.composeNotStartedMessage(this.nn.getRole()); throw new RetriableException(message); } }
NamenodeRegistration setRegistration() { nodeRegistration = new NamenodeRegistration( NetUtils.getHostPortString(getNameNodeAddress()), NetUtils.getHostPortString(getHttpAddress()), getFSImage().getStorage(), getRole()); return nodeRegistration; }
loginAsNameNodeUser(conf); NameNode.initMetrics(conf, this.getRole()); StartupProgressMetrics.register(startupProgress);
@Override // NameNodeStatusMXBean public String getNNRole() { String roleStr = ""; NamenodeRole role = getRole(); if (null != role) { roleStr = role.toString(); } return roleStr; }
@Override // NameNodeStatusMXBean public String getNNRole() { String roleStr = ""; NamenodeRole role = getRole(); if (null != role) { roleStr = role.toString(); } return roleStr; }
private void checkNNStartup() throws IOException { if (!this.nn.isStarted()) { throw new RetriableException(this.nn.getRole() + " still not started"); } }
private void checkNNStartup() throws IOException { if (!this.nn.isStarted()) { throw new RetriableException(this.nn.getRole() + " still not started"); } }
NamenodeRegistration setRegistration() { nodeRegistration = new NamenodeRegistration( NetUtils.getHostPortString(rpcServer.getRpcAddress()), NetUtils.getHostPortString(getHttpAddress()), getFSImage().getStorage(), getRole()); return nodeRegistration; }
NamenodeRegistration setRegistration() { nodeRegistration = new NamenodeRegistration( NetUtils.getHostPortString(rpcServer.getRpcAddress()), NetUtils.getHostPortString(getHttpAddress()), getFSImage().getStorage(), getRole()); return nodeRegistration; }
loginAsNameNodeUser(conf); NameNode.initMetrics(conf, this.getRole()); StartupProgressMetrics.register(startupProgress);
loginAsNameNodeUser(conf); NameNode.initMetrics(conf, this.getRole()); StartupProgressMetrics.register(startupProgress);