You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eli Collins (JIRA)" <ji...@apache.org> on 2011/05/18 19:58:47 UTC
[jira] [Commented] (HADOOP-6605) Add JAVA_HOME detection to
hadoop-config
[ https://issues.apache.org/jira/browse/HADOOP-6605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13035524#comment-13035524 ]
Eli Collins commented on HADOOP-6605:
-------------------------------------
Forgot to mention testing, since the unit tests don't cover this. I verified with this change that:
# JAVA_HOME if set in conf/hadoop-env.sh takes precedence over the term env and this detection
# JAVA_HOME if set by the term env takes precedence over this detection
# JAVA_HOME is now detected if installed w/o being set explicitly, and errs out if none is detected
> 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