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

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

Input:
{code}
hadoop-3.0.0-SNAPSHOT/bin/hadoop jar 
hadoop-yarn-project-3.0.0-SNAPSHOT/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-3.0.0-SNAPSHOT.jar
 org.apache.hadoop.yarn.applications.distributedshell.Client --jar 
hadoop-yarn-project-3.0.0-SNAPSHOT/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-3.0.0-SNAPSHOT.jar
 --shell_command pwd --shell_command ls
{code}

part of output:
{code}
INFO distributedshell.Client: Initializing Client
DistributedShell does not support multiple shell commands. Please create a 
shell script and use --shell_script option.
{code}

> 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
>
>         Attachments: YARN-1303.1.patch
>
>
> 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