You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Tassapol Athiapinya (JIRA)" <ji...@apache.org> on 2013/10/07 21:05:43 UTC
[jira] [Commented] (YARN-1168) Cannot run "echo \"Hello World\""
[ https://issues.apache.org/jira/browse/YARN-1168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13788445#comment-13788445 ]
Tassapol Athiapinya commented on YARN-1168:
-------------------------------------------
Use a double-quote with following single-quote instead of one double-quote will work.
/usr/bin/yarn org.apache.hadoop.yarn.applications.distributedshell.Client -jar <jar> -shell_command echo -shell_args "'hello world'"
> Cannot run "echo \"Hello World\""
> ---------------------------------
>
> Key: YARN-1168
> URL: https://issues.apache.org/jira/browse/YARN-1168
> Project: Hadoop YARN
> Issue Type: Bug
> Components: applications/distributed-shell
> Reporter: Tassapol Athiapinya
> Priority: Critical
> Fix For: 2.2.0
>
>
> Run
> $ ssh localhost "echo \"Hello World\""
> with bash does succeed. Hello World is shown in stdout.
> Run distributed shell with similar echo command. That is either
> $ /usr/bin/yarn org.apache.hadoop.yarn.applications.distributedshell.Client -jar /usr/lib/hadoop-yarn/hadoop-yarn-applications-distributedshell-2.*.jar -shell_command echo -shell_args "\"Hello World\""
> or
> $ /usr/bin/yarn org.apache.hadoop.yarn.applications.distributedshell.Client -jar /usr/lib/hadoop-yarn/hadoop-yarn-applications-distributedshell-2.*.jar -shell_command echo -shell_args "Hello World"
> {code:title=yarn logs -- only hello is shown}
> LogType: stdout
> LogLength: 6
> Log Contents:
> hello
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)