hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7205) automatically determine JAVA_HOME on OS X
Date Tue, 22 Mar 2011 21:44:05 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-7205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009852#comment-13009852

Daryn Sharp commented on HADOOP-7205:

Point taken, I understand the concern, and I was not aware of this policy.  I was following
the motto "when in Rome, do as the Romans do".  It's a standard practice on OS X to use java_home
to get the user's selected jvm.  The release notes that announce the deprecation of apple's
jvms recommends the use of java_home so it's unlikely to disappear(*).  If the command did
disappear, nothing would break with this patch.

Since I'm not aware of history of this policy, may I suggest that the env script sources another
env script (only if it exists) that is determined based on uname?  That will compartmentalize
os specific logic while retaining certain luxuries expected on each OS.


> automatically determine JAVA_HOME on OS X
> -----------------------------------------
>                 Key: HADOOP-7205
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7205
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 0.22.0
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>            Priority: Trivial
>             Fix For: 0.23.0
>         Attachments: HADOOP-7205.patch
> OS X provides a java_home command that will return the user's selected jvm.  The hadoop-env.sh
should use this command if JAVA_HOME is not set.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message