[
https://issues.apache.org/jira/browse/HADOOP-4090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629232#action_12629232
]
Doug Cutting commented on HADOOP-4090:
--------------------------------------
We can look to Ant and Tomcat and their use of JAVA_HOME as examples. Tomcat
requires JAVA_HOME to be set, while Ant gives JAVA_HOME priority, but, when it
is unset uses a relative path from 'java' on $PATH.
If we choose to default HADOOP_HOME to the parent directory of the location of
the 'hadoop' executable, we might do some validation. For example, we might,
before automatically setting HADOOP_HOME this way, require that
conf/hadoop-default.xml exists. If it does not, we should complain that
HADOOP_HOME needs setting. Steve, would such validation address your concerns?
> The configuration file lists two paths to hadoop directories (bin and conf).
> Startup should check that these are valid directories and give appropriate
> messages.
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-4090
> URL: https://issues.apache.org/jira/browse/HADOOP-4090
> Project: Hadoop Core
> Issue Type: Improvement
> Components: contrib/hive
> Affects Versions: 0.19.0
> Reporter: Ashish Thusoo
> Priority: Minor
> Attachments: hadoop-4090.2.patch, hadoop-4090.patch
>
>
> The configuration file lists two paths to hadoop directories (bin and conf).
> Startup should check that these are valid directories and give appropriate
> messages.
> Reported by Chad.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.