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 ";" in distributed-shell
Date Wed, 23 Oct 2013 21:08:45 GMT

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

Xuan Gong commented on YARN-1303:

Yes, not escaping and quoting the command line args are the issue. To fix it, either we can
expect that the client will give the correct command with the correct escaping and quoting
(That will not alway be happened.) or we can add double quote or single quote with the correct
escape character (such as \, etc) to modify the command in Client and AppMaster code. But
this will need the codes know how and when to add escaping and quoting based on the command.
 It is really difficult to cover all the cases.
So I think that  passed in through a file might be the simplest way to solve it. Tell the
client: please create your own shell script if you want to run some complex commands.

[~vinodkv] Could you give me further comments ?

> 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
>             Fix For: 2.2.1
>         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
> 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