hammer/homebrew-cdh — pull request #3 by fanatoly (2014-03-16 14:41:18+00:00)
Title: setting default value for JAVA_HOME using /usr/libexec/java_home

As it stands, the cdh-mr1 formula does not provide a value for java_home. Out of the box experience suffers. I've added a default behavior to the formula that uses /usr/libexec/java_home to determine the value of JAVA_HOME. A custom java location can still be provided by exporting JAVA_HOME explicitly.