HBASE-11534 Remove broken JAVA_HOME autodetection in hbase-config.sh (Esteban Gutierrez)
This commit is contained in:
parent
4fb32de394
commit
f6fad0a2b9
|
@ -122,21 +122,7 @@ fi
|
|||
# memory usage to explode. Tune the variable down to prevent vmem explosion.
|
||||
export MALLOC_ARENA_MAX=${MALLOC_ARENA_MAX:-4}
|
||||
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
for candidate in \
|
||||
/usr/lib/jvm/java-6-sun \
|
||||
/usr/lib/jvm/java-1.6.0-sun-1.6.0.*/jre \
|
||||
/usr/lib/jvm/java-1.6.0-sun-1.6.0.* \
|
||||
/usr/lib/j2sdk1.6-sun \
|
||||
/usr/java/jdk1.6* \
|
||||
/usr/java/jre1.6* \
|
||||
/Library/Java/Home ; do
|
||||
if [ -e $candidate/bin/java ]; then
|
||||
export JAVA_HOME=$candidate
|
||||
break
|
||||
fi
|
||||
done
|
||||
# if we didn't set it
|
||||
# Now having JAVA_HOME defined is required
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
cat 1>&2 <<EOF
|
||||
+======================================================================+
|
||||
|
@ -152,4 +138,3 @@ if [ -z "$JAVA_HOME" ]; then
|
|||
EOF
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue