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 Mon, 14 Oct 2013 21:17:44 GMT

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

Xuan Gong commented on YARN-1303:

Or we can do : still support --shell_args, and multiple --shell_command. We introduce --shell_args_num
to help us track which args belong to which command. So, if we want to run echo Yarn Hadoop
Mapreduce and pwd, so this will become --shell_command echo --shell_args Yarn Hadoop Mapreduce
--shell_args_num 3 --shell_command pwd --shell_args_number 0. In this case, we will know the
command echo has three args, and pwd does not have any command. For the script running for
ApplicationMaster, we will get something like "--shell_command echo,pwd --shell_args Yarn,Hadoop,Mapreduce
--shell_args_num 3,0". In ApplicationMaster code, we need recover those commands back. And
run multiple commands separately. We do the similar thing for 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
> 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