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:53:50 GMT

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

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 "ls|pwd"
{code}

part of output:
{code}
13/10/15 14:37:41 INFO distributedshell.Client: Initializing Client
DistributedShell does not support multiple commands or command pipeline. Please create a shell
script for them 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)

Mime
View raw message