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

Thomas Graves commented on YARN-126:
------------------------------------

{quote}Shouldn't this be the correct fix instead of throwing out 
GenericOptionsParser altogether?{quote}

I'm a bit torn on that. yes it does have a couple of the options used but it 
also has others that do not apply to the rmadmin command. It also has the 
generic usage statement of: "bin/hadoop command [genericOptions] 
[commandOptions]" which doesn't apply at all.  I guess another option is to 
change the GenericOptionsParser to be able to specify which options can be used 
and have it print the correct usage statements and so forth.  

Ideally I think we should redo all of the hadoop/hdfs/yarn/mapred commands to 
have consistent usage and interfaces but that is a much bigger change. 
                
> yarn rmadmin help message contains reference to hadoop cli and JT
> -----------------------------------------------------------------
>
>                 Key: YARN-126
>                 URL: https://issues.apache.org/jira/browse/YARN-126
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 2.0.3-alpha
>            Reporter: Thomas Graves
>            Assignee: Rémy SAISSY
>              Labels: usability
>         Attachments: YARN-126.patch
>
>
> has option to specify a job tracker and the last line for general command 
> line syntax had "bin/hadoop command [genericOptions] [commandOptions]"
> ran "yarn rmadmin" to get usage:
> RMAdmin
> Usage: java RMAdmin
>            [-refreshQueues]
>            [-refreshNodes]
>            [-refreshUserToGroupsMappings]
>            [-refreshSuperUserGroupsConfiguration]
>            [-refreshAdminAcls]
>            [-refreshServiceAcl]
>            [-help [cmd]]
> 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]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to