[ https://issues.apache.org/jira/browse/YARN-5116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15293901#comment-15293901 ]
Sunil G commented on YARN-5116: ------------------------------- [~hex108] HADOOP-12932 has new sub command support. So few changes has happened along with that. If I fire {{./yarn application}} command, I am getting exception instead of help page. [~aw], could you pls help to confirm if this is fine. {noformat} root@sunil-Inspiron-3543:/opt/hadoop/trunk/hadoop-3.0.0-alpha1-SNAPSHOT/bin# ./yarn application 16/05/20 23:38:01 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 16/05/20 23:38:04 INFO impl.TimelineClientImpl: Timeline service address: http://0.0.0.0:8188/ws/v1/timeline/ 16/05/20 23:38:04 INFO client.RMProxy: Connecting to ResourceManager at /127.0.0.1:25001 Invalid Command Usage : Exception in thread "main" java.lang.IllegalArgumentException: cmdLineSyntax not provided {noformat} > Failed to execute "yarn application" > ------------------------------------ > > Key: YARN-5116 > URL: https://issues.apache.org/jira/browse/YARN-5116 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Jun Gong > Assignee: Jun Gong > Attachments: YARN-5116.01.patch > > > Use the trunk code. > {code} > $ bin/yarn application -list > 16/05/20 11:35:45 WARN util.NativeCodeLoader: Unable to load native-hadoop > library for your platform... using builtin-java classes where applicable > Exception in thread "main" > org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -list > at org.apache.commons.cli.Parser.processOption(Parser.java:363) > at org.apache.commons.cli.Parser.parse(Parser.java:199) > at org.apache.commons.cli.Parser.parse(Parser.java:85) > at > org.apache.hadoop.yarn.client.cli.ApplicationCLI.run(ApplicationCLI.java:172) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90) > at > org.apache.hadoop.yarn.client.cli.ApplicationCLI.main(ApplicationCLI.java:90) > {code} > It is cause by that the subcommand 'application' is deleted from command > args. The following command is OK. > {code} > $ bin/yarn application application -list > 16/05/20 11:39:35 WARN util.NativeCodeLoader: Unable to load native-hadoop > library for your platform... using builtin-java classes where applicable > Total number of applications (application-types: [] and states: [SUBMITTED, > ACCEPTED, RUNNING]):0 > Application-Id Application-Name > Application-Type User Queue State > Final-State Progress Tracking-URL > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org