@InterfaceAudience.Private
@InterfaceStability.Unstable
public class RMAdminCLI
extends org.apache.hadoop.ha.HAAdmin
Modifier and Type | Field and Description |
---|---|
protected static Map<String,org.apache.hadoop.ha.HAAdmin.UsageInfo> |
ADMIN_USAGE |
Constructor and Description |
---|
RMAdminCLI() |
RMAdminCLI(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol |
createAdminProtocol() |
protected static org.apache.hadoop.yarn.nodelabels.CommonNodeLabelsManager |
getNodeLabelManagerInstance(org.apache.hadoop.conf.Configuration conf) |
protected Collection<String> |
getTargetIds(String targetNodeToActivate)
returns the list of all resourcemanager ids for the given configuration.
|
protected String |
getUsageString() |
static void |
main(String[] args) |
protected org.apache.hadoop.ha.HAServiceTarget |
resolveTarget(String rmId) |
int |
run(String[] args) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
protected void |
setErrOut(PrintStream errOut) |
protected void |
setOut(PrintStream out) |
getAllServiceState, getServiceAddr, printUsage, runCmd
public RMAdminCLI()
public RMAdminCLI(org.apache.hadoop.conf.Configuration conf)
protected void setErrOut(PrintStream errOut)
protected void setOut(PrintStream out)
protected org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol createAdminProtocol() throws IOException
IOException
protected static org.apache.hadoop.yarn.nodelabels.CommonNodeLabelsManager getNodeLabelManagerInstance(org.apache.hadoop.conf.Configuration conf)
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
run
in class org.apache.hadoop.ha.HAAdmin
Exception
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class org.apache.hadoop.ha.HAAdmin
protected org.apache.hadoop.ha.HAServiceTarget resolveTarget(String rmId)
resolveTarget
in class org.apache.hadoop.ha.HAAdmin
protected Collection<String> getTargetIds(String targetNodeToActivate)
getTargetIds
in class org.apache.hadoop.ha.HAAdmin
protected String getUsageString()
getUsageString
in class org.apache.hadoop.ha.HAAdmin
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.