HADOOP-11033. shell scripts ignore JAVA_HOME on OS X. (aw)
This commit is contained in:
parent
a0ccf83dfd
commit
0340206a29
|
@ -328,6 +328,8 @@ Trunk (Unreleased)
|
|||
|
||||
HADOOP-10748. HttpServer2 should not load JspServlet. (wheat9)
|
||||
|
||||
HADOOP-11033. shell scripts ignore JAVA_HOME on OS X. (aw)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HADOOP-7761. Improve the performance of raw comparisons. (todd)
|
||||
|
|
|
@ -517,10 +517,12 @@ function hadoop_os_tricks
|
|||
# examples for OS X and Linux. Vendors, replace this with your special sauce.
|
||||
case ${HADOOP_OS_TYPE} in
|
||||
Darwin)
|
||||
if [[ -x /usr/libexec/java_home ]]; then
|
||||
export JAVA_HOME="$(/usr/libexec/java_home)"
|
||||
else
|
||||
export JAVA_HOME=/Library/Java/Home
|
||||
if [[ -z "${JAVA_HOME}" ]]; then
|
||||
if [[ -x /usr/libexec/java_home ]]; then
|
||||
export JAVA_HOME="$(/usr/libexec/java_home)"
|
||||
else
|
||||
export JAVA_HOME=/Library/Java/Home
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
Linux)
|
||||
|
|
Loading…
Reference in New Issue