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] [Updated] (YARN-1168) Cannot run "echo \"Hello World\""
Date Tue, 10 Sep 2013 01:33:52 GMT

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

Tassapol Athiapinya updated YARN-1168:
--------------------------------------

    Description: 
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}

  was:
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}

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

Mime
View raw message