org.apache.hadoop.yarn.client.cli
Class RMAdminCLI

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.hadoop.ha.HAAdmin
          extended by org.apache.hadoop.yarn.client.cli.RMAdminCLI
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class RMAdminCLI
extends org.apache.hadoop.ha.HAAdmin


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.ha.HAAdmin
org.apache.hadoop.ha.HAAdmin.UsageInfo
 
Field Summary
protected static Map<String,org.apache.hadoop.ha.HAAdmin.UsageInfo> ADMIN_USAGE
           
 
Fields inherited from class org.apache.hadoop.ha.HAAdmin
errOut, out, USAGE
 
Constructor Summary
RMAdminCLI()
           
RMAdminCLI(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
protected  org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol createAdminProtocol()
           
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)
           
 
Methods inherited from class org.apache.hadoop.ha.HAAdmin
getServiceAddr, getUsageString, printUsage, runCmd
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf
 

Field Detail

ADMIN_USAGE

protected static final Map<String,org.apache.hadoop.ha.HAAdmin.UsageInfo> ADMIN_USAGE
Constructor Detail

RMAdminCLI

public RMAdminCLI()

RMAdminCLI

public RMAdminCLI(org.apache.hadoop.conf.Configuration conf)
Method Detail

createAdminProtocol

protected org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol createAdminProtocol()
                                                                                               throws IOException
Throws:
IOException

run

public int run(String[] args)
        throws Exception
Specified by:
run in interface org.apache.hadoop.util.Tool
Overrides:
run in class org.apache.hadoop.ha.HAAdmin
Throws:
Exception

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable
Overrides:
setConf in class org.apache.hadoop.ha.HAAdmin

resolveTarget

protected org.apache.hadoop.ha.HAServiceTarget resolveTarget(String rmId)
Specified by:
resolveTarget in class org.apache.hadoop.ha.HAAdmin

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2014 Apache Software Foundation. All Rights Reserved.