[
https://issues.apache.org/jira/browse/HBASE-850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629587#action_12629587
]
Izaak Rubin commented on HBASE-850:
-----------------------------------
I think we're going to pass on this one. the bin/hbase script first calls
conf/hbase-env.sh, which should define JAVA_HOME. JAVA_HOME really should be
defined in conf/hbase-env.sh... it's one of the few strictly required
configurations, so if it isn't defined there's a much bigger problem.
> bin/hbase should check `which java` to find java
> ------------------------------------------------
>
> Key: HBASE-850
> URL: https://issues.apache.org/jira/browse/HBASE-850
> Project: Hadoop HBase
> Issue Type: Bug
> Components: scripts
> Reporter: Michael Bieniosek
> Priority: Minor
>
> Currently, the bin/hbase script tries to find java in JAVA_HOME/bin/java. If
> JAVA_HOME isn't set, it errors out.
> Instead, I think it should check `which java 2>/dev/null` to see if there is
> a java on the user's PATH. If a java is on the user's path, the script should
> just set JAVA=java.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.