[
https://issues.apache.org/jira/browse/HADOOP-6605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eli Collins updated HADOOP-6605:
--------------------------------
Attachment: hadoop-6605-4.patch
Thanks for the feedback guys. Patch attached uses double brackets and -x.
Allen, I think this patch addresses the specific concern you raised (searching
too many directories, the Linux stuff). This patch does pretty minimal work
(just calls out to java_home). It does still execute on each command, that's
intentional and IMO OK because per above it's minimal work and otherwise Hadoop
would not notice when the user changed their JAVA_HOME preference. Lemme know
if you're -1 or -0.
> 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,
> hadoop-6605-2.patch, hadoop-6605-3.patch, hadoop-6605-4.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