[ https://issues.apache.org/jira/browse/HADOOP-7205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009788#comment-13009788 ] Allen Wittenauer commented on HADOOP-7205: ------------------------------------------ -1 a) We've been avoiding OS-specific changes in the shells for a very long time, including one to autodetect Java on various Linux distributions. I see no reason to reverse this now. I've said it before and I'll say it again: stuff like this should really go into an installer that modifies hadoop-env.sh, not part of the base executable. b) Given that Java is moving from Apple controlled to Oracle controlled on OS X, there is a very good chance this command will disappear in a future release. > automatically determine JAVA_HOME on OS X > ----------------------------------------- > > Key: HADOOP-7205 > URL: https://issues.apache.org/jira/browse/HADOOP-7205 > Project: Hadoop Common > Issue Type: Improvement > Affects Versions: 0.22.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Fix For: 0.23.0 > > Attachments: HADOOP-7205.patch > > > OS X provides a java_home command that will return the user's selected jvm. The hadoop-env.sh should use this command if JAVA_HOME is not set. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira