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

bin and sbin commands don't use JAVA_HOME when run from the tarball

    XMLWordPrintableJSON

    Details

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

      Description

      When running eg ./sbin/start-dfs.sh from a tarball the scripts complain JAVA_HOME is not set and could not be found even if the env var is set.

      hadoop-0.24.0-SNAPSHOT $ echo $JAVA_HOME
      /home/eli/toolchain/jdk1.6.0_24-x64
      hadoop-0.24.0-SNAPSHOT $ ./sbin/start-dfs.sh 
      log4j:ERROR Could not find value for key log4j.appender.NullAppender
      log4j:ERROR Could not instantiate appender named "NullAppender".
      Starting namenodes on [localhost]
      localhost: Error: JAVA_HOME is not set and could not be found.
      

      I have to explicitly set this via hadoop-env.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                eli Eli Collins
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: