HBASE-4243 HADOOP_HOME should be auto-detected
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1166761 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
52ccf8db35
commit
c6d4b05ad7
|
@ -459,6 +459,7 @@ Release 0.91.0 - Unreleased
|
|||
HBASE-4342 Update Thrift to 0.7.0 (Moaz Reyad)
|
||||
HBASE-4260 Expose a command to manually trigger an HLog roll
|
||||
(ramkrishna.s.vasudevan)
|
||||
HBASE-4243 HADOOP_HOME should be auto-detected (Roman Shaposhnik)
|
||||
|
||||
TASKS
|
||||
HBASE-3559 Move report of split to master OFF the heartbeat channel
|
||||
|
|
|
@ -205,6 +205,14 @@ function append_path() {
|
|||
|
||||
JAVA_PLATFORM=""
|
||||
|
||||
#Try to guess HADOOP_HOME
|
||||
if [ -z "$HADOOP_HOME" ]; then
|
||||
HADOOP_IN_PATH=$(readlink -f "$(which hadoop 2>/dev/null)")
|
||||
if [ -f "${HADOOP_IN_PATH}" ]; then
|
||||
HADOOP_HOME=$(readlink -f "$(dirname ${HADOOP_IN_PATH})"/..)
|
||||
fi
|
||||
fi
|
||||
|
||||
#If avail, add Hadoop to the CLASSPATH and to the JAVA_LIBRARY_PATH
|
||||
if [ ! -z $HADOOP_HOME ]; then
|
||||
HADOOPCPPATH=""
|
||||
|
|
Loading…
Reference in New Issue