hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuan Gong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1303) Allow multiple commands separating with ;
Date Tue, 15 Oct 2013 21:51:46 GMT

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

Xuan Gong commented on YARN-1303:

Did the test on a single cluster:
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 --help

chosen Output:
 -shell_command <arg>        Shell command to be executed by the
                             Application Master. Does not support multiple
                             --shell_command options, multiple shell
                             commands and command pipline. For multiple
                             shell commands or command pipeline, please
                             create a shell script and use --shell_script
 -shell_script <arg>         Location of the shell script to be executed.
                             Support only one --shell_script option. For
                             multiple shell scripts, combine them into one
                             shell script

> 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

View raw message