You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Jianbin Wei (JIRA)" <ji...@apache.org> on 2012/08/22 02:14:38 UTC

[jira] [Created] (HADOOP-8717) JAVA_HOME detected in hadoop-config.sh under OS X does not work

Jianbin Wei created HADOOP-8717:
-----------------------------------

             Summary: JAVA_HOME detected in hadoop-config.sh under OS X does not work
                 Key: HADOOP-8717
                 URL: https://issues.apache.org/jira/browse/HADOOP-8717
             Project: Hadoop Common
          Issue Type: Bug
          Components: bin
    Affects Versions: 3.0.0
         Environment: OS: Darwin 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64

java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)


            Reporter: Jianbin Wei
            Priority: Minor


After setting up a single node hadoop on mac, copy some text file to it and run

$ hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-examples-3.0.0-SNAPSHOT.jar  wordcount /file.txt output

It reports


12/08/21 15:32:18 INFO Job.java:mapreduce.Job:1265: Running job: job_1345588312126_0001
12/08/21 15:32:22 INFO Job.java:mapreduce.Job:1286: Job job_1345588312126_0001 running in uber mode : false
12/08/21 15:32:22 INFO Job.java:mapreduce.Job:1293:  map 0% reduce 0%
12/08/21 15:32:22 INFO Job.java:mapreduce.Job:1306: Job job_1345588312126_0001 failed with state FAILED due to: Application application_1345588312126_0001 failed 1 times due to AM Container for appattempt_1345588312126_0001_000001 exited with  exitCode: 127 due to: 
.Failing this attempt.. Failing the application.
12/08/21 15:32:22 INFO Job.java:mapreduce.Job:1311: Counters: 0


$ cat /tmp/logs/application_1345588312126_0001/container_1345588312126_0001_01_000001/stderr

/bin/bash: /bin/java: No such file or directory

The detected JAVA_HOME is not used somehow.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira