[
https://issues.apache.org/jira/browse/YARN-1303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13795762#comment-13795762
]
Hitesh Shah commented on YARN-1303:
-----------------------------------
[[~xgong] From what you mention, it seems like that there is a bug in the
client code which is not escaping and quoting the command line args for the
ApplicationMaster correctly. i.e. it should be doing something like:
org.apache.hadoop.yarn.applications.distributedshell.ApplicationMaster
--container_memory "128" --container_vcores "1" --num_containers "2" --priority
"0" --shell_command "ls;pwd"
> 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, YARN-1303.2.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)