[
https://issues.apache.org/jira/browse/HADOOP-6605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839966#action_12839966
]
Allen Wittenauer commented on HADOOP-6605:
------------------------------------------
Also, rather than make this Linux specific, adding /usr/jdk/instances/(version)
to the detection and you'll get Solaris support. I also notice that the patch
already has Mac OS X.
It also just occurred to me that in the past there has been a very big
reluctance to put OS specific fixes/changes in place. I'm not sure if the
community will take such a change here.
> Improve JAVA_HOME detection and handling in hadoop-config
> ---------------------------------------------------------
>
> Key: HADOOP-6605
> URL: https://issues.apache.org/jira/browse/HADOOP-6605
> Project: Hadoop Common
> Issue Type: Improvement
> Affects Versions: 0.20.2
> Reporter: Chad Metcalf
> Assignee: Chad Metcalf
> Attachments: HADOOP-6605.patch
>
>
> JAVA_HOME can be set in hadoop-env.sh and hadoop-config.sh should respect
> this. hadoop-config will source hadoop-env after it determines a config
> directory. If JAVA_HOME still isn't set, it will try to guess one from a list
> of Linux usual locations. If one still isn't set it will quit with a verbose
> error message.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.