@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 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) |
getServiceAddr, getTargetIds, printUsage, runCmdpublic RMAdminCLI()
public RMAdminCLI(org.apache.hadoop.conf.Configuration conf)
protected void setErrOut(PrintStream errOut)
protected org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol createAdminProtocol()
throws IOException
IOExceptionprotected 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.Toolrun in class org.apache.hadoop.ha.HAAdminExceptionpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.ConfigurablesetConf in class org.apache.hadoop.ha.HAAdminprotected org.apache.hadoop.ha.HAServiceTarget resolveTarget(String rmId)
resolveTarget in class org.apache.hadoop.ha.HAAdminprotected String getUsageString()
getUsageString in class org.apache.hadoop.ha.HAAdminCopyright © 2018 Apache Software Foundation. All Rights Reserved.