Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Not A Problem
    • Affects Version/s: 0.23.0
    • Fix Version/s: None
    • Component/s: mrv2
    • Labels:
      None
    • Environment:

      OS/X, JAVA_HOME unset

      Description

      libexec/hadoop-config.sh does reliably work out JAVA_HOME for many platforms. unfortunately, the yarn scripts don't use it. As such you get told off when you try to run yarn

      $ bin/yarn resourcemanager
      Error: JAVA_HOME is not set.
      
      

      To make things more interesting, if you set the value in the shell, it still doesn't propagate down to the scripts

      $ echo $JAVA_HOME
      
      $ source libexec/hadoop-config.sh 
      $ echo $JAVA_HOME
      /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
      $ bin/yarn resourcemanager
      Error: JAVA_HOME is not set.
      $echo $JAVA_HOME
      /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
      

        Issue Links

          Activity

          Steve Loughran created issue -
          Steve Loughran made changes -
          Field Original Value New Value
          Project Hadoop Common [ 12310240 ] Hadoop Map/Reduce [ 12310941 ]
          Key HADOOP-7839 MAPREDUCE-3432
          Affects Version/s 0.23.0 [ 12315570 ]
          Affects Version/s 0.23.0 [ 12315569 ]
          Component/s mrv2 [ 12314301 ]
          Component/s scripts [ 12311393 ]
          Steve Loughran made changes -
          Link This issue is related to HADOOP-7894 [ HADOOP-7894 ]
          Allen Wittenauer made changes -
          Link This issue Is contained by HADOOP-9902 [ HADOOP-9902 ]
          Allen Wittenauer made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Not a Problem [ 8 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development