Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3648118F0 for ; Wed, 3 Sep 2014 22:25:52 +0000 (UTC) Received: (qmail 82309 invoked by uid 500); 3 Sep 2014 22:25:52 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 82262 invoked by uid 500); 3 Sep 2014 22:25:52 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 82242 invoked by uid 99); 3 Sep 2014 22:25:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 22:25:52 +0000 Date: Wed, 3 Sep 2014 22:25:52 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HADOOP-11033) shell scripts ignore JAVA_HOME on OS X MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-11033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Wittenauer reassigned HADOOP-11033: ----------------------------------------- Assignee: Allen Wittenauer > shell scripts ignore JAVA_HOME on OS X > -------------------------------------- > > Key: HADOOP-11033 > URL: https://issues.apache.org/jira/browse/HADOOP-11033 > Project: Hadoop Common > Issue Type: Bug > Components: scripts > Affects Versions: 3.0.0 > Environment: Mac OSX with both JDK_1.7.0_67 and JDK_1.8.0_20 installed. > Reporter: Lei (Eddy) Xu > Assignee: Allen Wittenauer > Fix For: 3.0.0 > > Attachments: HADOOP-11033.patch > > > 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 > {noformat} > $ echo $JAVA_HOME > /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home > {noformat} > However, when I start a local cluster using {{start-dfs.sh}}, it reports > {noformat} > 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 > {noformat} > It is expected to use JDK 7 instead. This bug only occurs on trunk, but not branch-2. -- This message was sent by Atlassian JIRA (v6.3.4#6332)