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

Daryn Sharp commented on HADOOP-6605:
-------------------------------------

-1: Only in that I don't like the logic as it would apply to OS X, but I do 
really like the concept.  Minor point is /Library/Java/Home was deprecated in 
10.5 in favor of /usr/libexec/java_home.  Ignoring that, if for some reason I 
had a copy of java in any of the myriad of directories listed prior to 
/Library/Java/Home, then this patch will pick that (wrong) version of java, 
instead of the one I set in "Java Preferences".



> Add JAVA_HOME detection to hadoop-config
> ----------------------------------------
>
>                 Key: HADOOP-6605
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6605
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Chad Metcalf
>            Assignee: Eli Collins
>            Priority: Minor
>             Fix For: 0.22.0
>
>         Attachments: HADOOP-6605.patch, hadoop-6605-1.patch
>
>
> The commands that source hadoop-config.sh currently bail with an error if 
> JAVA_HOME is not set. Let's detect JAVA_HOME (from a list of locations on 
> various OS types) if JAVA_HOME is not already set by hadoop-env.sh or the 
> environment. This way users don't have to manually configure it.

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

Reply via email to