[
https://issues.apache.org/jira/browse/YARN-1303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13828462#comment-13828462
]
Xuan Gong commented on YARN-1303:
---------------------------------
Did the test on a single node cluster :
Using the command :
{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 "ls|ps" --num_containers 2
{code}
And From launch_container.sh of Container :
{code}
exec /bin/bash -c "ls|ps
1>/Users/xuan/dep/hadoop-3.0.0-SNAPSHOT/logs/application_1385002853820_0002/container_1385002853820_0002_01_000003/stdout
2>/Users/xuan/dep/hadoop-3.0.0-SNAPSHOT/logs/application_1385002853820_0002/container_1385002853820_0002_01_000003/stderr
"
{code}
> Allow multiple commands separating with ";" in distributed-shell
> ----------------------------------------------------------------
>
> 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
> Attachments: YARN-1303.1.patch, YARN-1303.2.patch, YARN-1303.3.patch,
> YARN-1303.3.patch, YARN-1303.4.patch, YARN-1303.4.patch, YARN-1303.5.patch,
> YARN-1303.6.patch, YARN-1303.7.patch, YARN-1303.8.1.patch,
> YARN-1303.8.2.patch, YARN-1303.8.patch, YARN-1303.9.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)