HADOOP-7801. HADOOP_PREFIX cannot be overriden. Contributed by Bruno Mahé.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1199025 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas White 2011-11-08 00:16:27 +00:00
parent 6dff9329d5
commit cb7f819b91
10 changed files with 27 additions and 9 deletions

View File

@ -100,6 +100,20 @@ Trunk (unreleased changes)
HADOOP-7773. Add support for protocol buffer based RPC engine. HADOOP-7773. Add support for protocol buffer based RPC engine.
(suresh) (suresh)
Release 0.23.1 - Unreleased
INCOMPATIBLE CHANGES
NEW FEATURES
IMPROVEMENTS
HADOOP-7801. HADOOP_PREFIX cannot be overriden. (Bruno Mahé via tomwhite)
OPTIMIZATIONS
BUG FIXES
Release 0.23.0 - 2011-11-01 Release 0.23.0 - 2011-11-01
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -27,7 +27,9 @@ this="$common_bin/$script"
# the root of the Hadoop installation # the root of the Hadoop installation
# See HADOOP-6255 for directory structure layout # See HADOOP-6255 for directory structure layout
export HADOOP_PREFIX=`dirname "$this"`/.. HADOOP_DEFAULT_PREFIX=`dirname "$this"`/..
HADOOP_PREFIX=${HADOOP_PREFIX:-$HADOOP_DEFAULT_PREFIX}
export HADOOP_PREFIX
#check to see if the conf dir is given as an optional argument #check to see if the conf dir is given as an optional argument
if [ $# -gt 1 ] if [ $# -gt 1 ]

View File

@ -75,7 +75,7 @@ check_privsep_dir() {
} }
export PATH="${PATH:+$PATH:}/usr/sbin:/usr/bin" export PATH="${PATH:+$PATH:}/usr/sbin:/usr/bin"
export HADOOP_PREFIX="/usr" export HADOOP_PREFIX=${HADOOP_PREFIX:-/usr}
case "$1" in case "$1" in
start) start)

View File

@ -67,7 +67,7 @@ check_privsep_dir() {
} }
export PATH="${PATH:+$PATH:}/usr/sbin:/usr/bin" export PATH="${PATH:+$PATH:}/usr/sbin:/usr/bin"
export HADOOP_PREFIX="/usr" export HADOOP_PREFIX=${HADOOP_PREFIX:-/usr}
case "$1" in case "$1" in
start) start)

View File

@ -71,7 +71,7 @@ format() {
} }
export PATH="${PATH:+$PATH:}/usr/sbin:/usr/bin" export PATH="${PATH:+$PATH:}/usr/sbin:/usr/bin"
export HADOOP_PREFIX="/usr" export HADOOP_PREFIX=${HADOOP_PREFIX:-/usr}
case "$1" in case "$1" in
start) start)

View File

@ -67,7 +67,7 @@ check_privsep_dir() {
} }
export PATH="${PATH:+$PATH:}/usr/sbin:/usr/bin" export PATH="${PATH:+$PATH:}/usr/sbin:/usr/bin"
export HADOOP_PREFIX="/usr" export HADOOP_PREFIX=${HADOOP_PREFIX:-/usr}
case "$1" in case "$1" in
start) start)

View File

@ -19,7 +19,9 @@ bin=`dirname "$0"`
bin=`cd "$bin"; pwd` bin=`cd "$bin"; pwd`
this="${BASH_SOURCE-$0}" this="${BASH_SOURCE-$0}"
export HADOOP_PREFIX=`dirname "$this"`/.. HADOOP_DEFAULT_PREFIX=`dirname "$this"`/..
HADOOP_PREFIX=${HADOOP_PREFIX:-$HADOOP_DEFAULT_PREFIX}
export HADOOP_PREFIX
usage() { usage() {
echo " echo "

View File

@ -27,7 +27,7 @@ source /etc/default/hadoop-env.sh
RETVAL=0 RETVAL=0
PIDFILE="${HADOOP_PID_DIR}/hadoop-mapred-jobtracker.pid" PIDFILE="${HADOOP_PID_DIR}/hadoop-mapred-jobtracker.pid"
desc="Hadoop jobtracker daemon" desc="Hadoop jobtracker daemon"
export HADOOP_PREFIX="/usr" export HADOOP_PREFIX=${HADOOP_PREFIX:-/usr}
start() { start() {
echo -n $"Starting $desc (hadoop-jobtracker): " echo -n $"Starting $desc (hadoop-jobtracker): "

View File

@ -27,7 +27,7 @@ source /etc/default/hadoop-env.sh
RETVAL=0 RETVAL=0
PIDFILE="${HADOOP_PID_DIR}/hadoop-hdfs-namenode.pid" PIDFILE="${HADOOP_PID_DIR}/hadoop-hdfs-namenode.pid"
desc="Hadoop namenode daemon" desc="Hadoop namenode daemon"
export HADOOP_PREFIX="/usr" export HADOOP_PREFIX=${HADOOP_PREFIX:-/usr}
start() { start() {
echo -n $"Starting $desc (hadoop-namenode): " echo -n $"Starting $desc (hadoop-namenode): "

View File

@ -27,7 +27,7 @@ source /etc/default/hadoop-env.sh
RETVAL=0 RETVAL=0
PIDFILE="${HADOOP_PID_DIR}/hadoop-mapred-tasktracker.pid" PIDFILE="${HADOOP_PID_DIR}/hadoop-mapred-tasktracker.pid"
desc="Hadoop tasktracker daemon" desc="Hadoop tasktracker daemon"
export HADOOP_PREFIX="/usr" export HADOOP_PREFIX=${HADOOP_PREFIX:-/usr}
start() { start() {
echo -n $"Starting $desc (hadoop-tasktracker): " echo -n $"Starting $desc (hadoop-tasktracker): "