Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8717

JAVA_HOME detected in hadoop-config.sh under OS X does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: conf, scripts
    • Labels:
    • Environment:

      Description

      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.

        Attachments

        1. HADOOP-8717.patch
          5 kB
          Jianbin Wei
        2. HADOOP-8717.patch
          2 kB
          Jianbin Wei
        3. HADOOP-8717.patch
          2 kB
          Jianbin Wei
        4. HADOOP-8717.patch
          0.7 kB
          Jianbin Wei

          Issue Links

            Activity

              People

              • Assignee:
                jianbwei Jianbin Wei
                Reporter:
                jianbwei Jianbin Wei
              • Votes:
                1 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated: