hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuan Gong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1761) RMAdminCLI should check whether HA is enabled before executes transitionToActive/transitionToStandby
Date Wed, 05 Mar 2014 20:12:48 GMT

    [ https://issues.apache.org/jira/browse/YARN-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921343#comment-13921343

Xuan Gong commented on YARN-1761:

Run command: yarn rmadmin -help

* With HA
rmadmin is the command to execute YARN administrative commands.
The full syntax is: 

yarn rmadmin [-refreshQueues] [-refreshNodes] [-refreshSuperUserGroupsConfiguration] [-refreshUserToGroupsMappings]
[-refreshAdminAcls] [-refreshServiceAcl] [-getGroup [username]] [-help [cmd]] [-transitionToActive
<serviceId>] [-transitionToStandby <serviceId>] [-failover [--forcefence] [--forceactive]
<serviceId> <serviceId>] [-getServiceState <serviceId>] [-checkHealth <serviceId>]

   -refreshQueues: Reload the queues' acls, states and scheduler specific properties. 
		ResourceManager will reload the mapred-queues configuration file.
   -refreshNodes: Refresh the hosts information at the ResourceManager.
   -refreshSuperUserGroupsConfiguration: Refresh superuser proxy groups mappings
   -refreshUserToGroupsMappings: Refresh user-to-groups mappings
   -refreshAdminAcls: Refresh acls for administration of ResourceManager
   -refreshServiceAcl: Reload the service-level authorization policy file. 
		ResoureceManager will reload the authorization policy file.
   -getGroups [username]: Get the groups which given user belongs to.
   -help [cmd]: Displays help for the given command or all commands if none is specified.
   -transitionToActive <serviceId>: Transitions the service into Active state
   -transitionToStandby <serviceId>: Transitions the service into Standby state
   -failover [--forcefence] [--forceactive] <serviceId> <serviceId>: Failover
from the first service to the second.
Unconditionally fence services if the forcefence option is used.
Try to failover to the target service even if it is not ready if the forceactive option is
   -getServiceState <serviceId>: Returns the state of the service
   -checkHealth <serviceId>: Requests that the service perform a health check.
The HAAdmin tool will exit with a non-zero exit code
if the check fails.

Generic options supported are
-conf <configuration file>     specify an application configuration file
-D <property=value>            use value for given property
-fs <local|namenode:port>      specify a namenode
-jt <local|jobtracker:port>    specify a job tracker
-files <comma separated list of files>    specify comma separated files to be copied
to the map reduce cluster
-libjars <comma separated list of jars>    specify comma separated jar files to include
in the classpath.
-archives <comma separated list of archives>    specify comma separated archives to
be unarchived on the compute machines.

The general command line syntax is
bin/hadoop command [genericOptions] [commandOptions]

> RMAdminCLI should check whether HA is enabled before executes transitionToActive/transitionToStandby
> ----------------------------------------------------------------------------------------------------
>                 Key: YARN-1761
>                 URL: https://issues.apache.org/jira/browse/YARN-1761
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Xuan Gong
>            Assignee: Xuan Gong
>         Attachments: YARN-1761.1.patch, YARN-1761.2.patch, YARN-1761.2.patch, YARN-1761.3.patch,
YARN-1761.3.patch, YARN-1761.4.patch

This message was sent by Atlassian JIRA

View raw message