You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Tassapol Athiapinya (JIRA)" <ji...@apache.org> on 2013/09/07 08:39:51 UTC

[jira] [Created] (YARN-1168) Cannot run "echo \"Hello World\""

Tassapol Athiapinya created YARN-1168:
-----------------------------------------

             Summary: 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.1.1-beta


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
$ /usr/bin/yarn  org.apache.hadoop.yarn.applications.distributedshell.Client -jar /usr/lib/hadoop-yarn/hadoop-yarn-applications-distributedshell-2.*.jar -shell_command "echo \"Hello World\""

{code:title=partial console logs}
distributedshell.Client: Completed setting up app master command $JAVA_HOME/bin/java -Xmx10m org.apache.hadoop.yarn.applications.distributedshell.ApplicationMaster --container_memory 10 --num_containers 1 --priority 0 --shell_command echo "Hello World 1><LOG_DIR>/AppMaster.stdout 2><LOG_DIR>/AppMaster.stderr
...
line 28: syntax error: unexpected end of file

	at org.apache.hadoop.util.Shell.runCommand(Shell.java:458)
	at org.apache.hadoop.util.Shell.run(Shell.java:373)
	at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:578)
	at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:195)
	at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:258)
	at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:74)
...
distributedshell.Client: Application failed to complete successfully
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira