You are viewing a plain text version of this content. The canonical link for it is here.
Posted to submarine-dev@hadoop.apache.org by "Adam Antal (JIRA)" <ji...@apache.org> on 2019/04/24 08:26:00 UTC

[jira] [Assigned] (SUBMARINE-57) Add more elaborate message if submarine command is not recognized

     [ https://issues.apache.org/jira/browse/SUBMARINE-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Antal reassigned SUBMARINE-57:
-----------------------------------

    Assignee: Adam Antal

> Add more elaborate message if submarine command is not recognized
> -----------------------------------------------------------------
>
>                 Key: SUBMARINE-57
>                 URL: https://issues.apache.org/jira/browse/SUBMARINE-57
>             Project: Hadoop Submarine
>          Issue Type: Improvement
>            Reporter: Szilard Nemeth
>            Assignee: Adam Antal
>            Priority: Major
>
> In {{org.apache.hadoop.yarn.submarine.client.cli.Cli#main}}, we have this error handling: 
> {code:java}
> if (args[0].equals("job")) {
>       String subCmd = args[1];
>       if (subCmd.equals(CliConstants.RUN)) {
>         new RunJobCli(clientContext).run(moduleArgs);
>       } else if (subCmd.equals(CliConstants.SHOW)) {
>         new ShowJobCli(clientContext).run(moduleArgs);
>       } else {
>         printHelp();
>         throw new IllegalArgumentException("Unknown option for job");
>       }
>     } else {
>       printHelp();
>       throw new IllegalArgumentException("Bad parameters <TODO>");
>     }
> {code}
> "Bad parameters <TODO>" need to be replaced with someting making more sense.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)