[ 
https://issues.apache.org/jira/browse/YARN-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xuan Gong updated YARN-1314:
----------------------------

    Attachment: YARN-1314.3.patch

1.Using the same approach as YARN-1303. Basically,  create a file that will 
save all the client's input args(from --shell_args). The AM will read all the 
args, and add them into CLC. We try to let all containers run the exactly the 
same args that client gives, and let clients to figure out when and where to do 
the correct escaping staff.
2. Did a little code formatting, since we are using lots of duplicate codes

> Cannot pass more than 1 argument to shell command
> -------------------------------------------------
>
>                 Key: YARN-1314
>                 URL: https://issues.apache.org/jira/browse/YARN-1314
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: applications/distributed-shell
>            Reporter: Tassapol Athiapinya
>            Assignee: Xuan Gong
>             Fix For: 2.2.1
>
>         Attachments: YARN-1314.1.patch, YARN-1314.1.patch, YARN-1314.2.patch, 
> YARN-1314.3.patch
>
>
> Distributed shell cannot accept more than 1 parameters in argument parts.
> All of these commands are treated as 1 parameter:
> /usr/bin/yarn  org.apache.hadoop.yarn.applications.distributedshell.Client 
> -jar <distrubuted shell jar> -shell_command echo -shell_args "'"My   name"    
>             "is  Teddy"'"
> /usr/bin/yarn  org.apache.hadoop.yarn.applications.distributedshell.Client 
> -jar <distrubuted shell jar> -shell_command echo -shell_args "''My   name'    
>             'is  Teddy''"
> /usr/bin/yarn  org.apache.hadoop.yarn.applications.distributedshell.Client 
> -jar <distrubuted shell jar> -shell_command echo -shell_args "'My   name'     
>            'is  Teddy'"



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to