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

Xuan Gong commented on YARN-1303:
---------------------------------

[~tassapola]
Hitesh's suggestion can make the solution much easier. Otherwise, I need to add 
more logic to solve this problem, such as how to find a way to figure out which 
args belongs to which commands, etc.

I wonder if we can limit distributed shell that can only have one command to 
execute by using --shell_command. If we need to execute more than one commands, 
we can use the --shell_script. That will simply the solution a lot.

[~vinodkv] Any suggestions ?

> Allow multiple commands separating with ;
> -----------------------------------------
>
>                 Key: YARN-1303
>                 URL: https://issues.apache.org/jira/browse/YARN-1303
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: applications/distributed-shell
>            Reporter: Tassapol Athiapinya
>            Assignee: Xuan Gong
>             Fix For: 2.2.1
>
>
> In shell, we can do "ls; ls" to run 2 commands at once. 
> In distributed shell, this is not working. We should improve to allow this to 
> occur. There are practical use cases that I know of to run multiple commands 
> or to set environment variables before a command.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to