hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tassapol Athiapinya (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1168) Cannot run "echo \"Hello World\""
Date Mon, 07 Oct 2013 19:05:43 GMT

    [ 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)

Mime
View raw message