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

shell scripts ignore JAVA_HOME on OS X

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 3.0.0-alpha1
    • scripts
    • None
    • Mac OSX with both JDK_1.7.0_67 and JDK_1.8.0_20 installed.

    Description

      Running start-dfs.sh script should pick the java specified by JAVA_HOME which is defined in my /.zshrc and /.bashrc.

      My JAVA_HOME is

       $ echo $JAVA_HOME
      /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home
      

      However, when I start a local cluster using start-dfs.sh, it reports

      JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home
      2014-08-29 14:48:20,767 INFO  [main] namenode.NameNode (StringUtils.java:startupShutdownMessage(633)) - STARTUP_MSG:
      .....
      
      STARTUP_MSG:   java = 1.8.0_20
      

      It is expected to use JDK 7 instead. This bug only occurs on trunk, but not branch-2.

      Attachments

        1. HADOOP-11033.patch
          0.9 kB
          Allen Wittenauer

        Issue Links

          Activity

            People

              aw Allen Wittenauer
              eddyxu Lei (Eddy) Xu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: