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 "maruscia (JIRA)" <ji...@apache.org> on 2014/04/15 18:34:17 UTC

[jira] [Commented] (YARN-871) Failed to run MR example against latest trunk

    [ https://issues.apache.org/jira/browse/YARN-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13969693#comment-13969693 ] 

maruscia commented on YARN-871:
-------------------------------

The reported user os appears to be OSX, then the issue may be related to to this SO question: http://stackoverflow.com/questions/20390217/mapreduce-job-in-headless-environment-fails-n-times-due-to-am-container-exceptio (check out Answer 1)
The hadoop-env.sh file hardcodes the java executable file path as /bin/java while on MacOs it defaults to /usr/bin/java.

Would it be better to avoid the hardcoding and rely on $PATH?

> Failed to run MR example against latest trunk
> ---------------------------------------------
>
>                 Key: YARN-871
>                 URL: https://issues.apache.org/jira/browse/YARN-871
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Zhijie Shen
>         Attachments: yarn-zshen-resourcemanager-ZShens-MacBook-Pro.local.log
>
>
> Built the latest trunk, deployed a single node cluster and ran examples, such as
> {code}
>  hadoop jar hadoop-3.0.0-SNAPSHOT/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.0.0-SNAPSHOT.jar teragen 10 out1
> {code}
> The job failed with the following console message:
> {code}
> 13/06/21 12:51:25 INFO mapreduce.Job: Running job: job_1371844267731_0001
> 13/06/21 12:51:31 INFO mapreduce.Job: Job job_1371844267731_0001 running in uber mode : false
> 13/06/21 12:51:31 INFO mapreduce.Job:  map 0% reduce 0%
> 13/06/21 12:51:31 INFO mapreduce.Job: Job job_1371844267731_0001 failed with state FAILED due to: Application application_1371844267731_0001 failed 2 times due to AM Container for appattempt_1371844267731_0001_000002 exited with  exitCode: 127 due to: 
> .Failing this attempt.. Failing the application.
> 13/06/21 12:51:31 INFO mapreduce.Job: Counters: 0
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)