HDFS-2543. HADOOP_PREFIX cannot be overridden. Contributed by Bruno Mahé.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1203486 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bd2e2aaf99
commit
6a01c22755
|
@ -112,6 +112,8 @@ Release 0.23.1 - UNRELEASED
|
|||
HDFS-2544. Hadoop scripts unconditionally source
|
||||
"$bin"/../libexec/hadoop-config.sh. (Bruno Mahé via tomwhite)
|
||||
|
||||
HDFS-2543. HADOOP_PREFIX cannot be overridden. (Bruno Mahé via tomwhite)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HDFS-2130. Switch default checksum to CRC32C. (todd)
|
||||
|
|
|
@ -16,9 +16,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
if [ "$HADOOP_PREFIX" = "" ]; then
|
||||
export HADOOP_PREFIX=/usr/local/share/hadoop
|
||||
fi
|
||||
export HADOOP_PREFIX=${HADOOP_PREFIX:-/usr/local/share/hadoop}
|
||||
|
||||
if [ "$OS_ARCH" = "" ]; then
|
||||
export OS_ARCH=amd64
|
||||
|
|
|
@ -67,7 +67,7 @@ check_privsep_dir() {
|
|||
}
|
||||
|
||||
export PATH="${PATH:+$PATH:}/usr/sbin:/usr/bin"
|
||||
export HADOOP_PREFIX="/usr"
|
||||
export HADOOP_PREFIX=${HADOOP_PREFIX:-/usr}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
|
|
|
@ -27,7 +27,7 @@ source /etc/default/hadoop-env.sh
|
|||
RETVAL=0
|
||||
PIDFILE="${HADOOP_PID_DIR}/hadoop-hdfs-secondarynamenode.pid"
|
||||
desc="Hadoop secondary namenode daemon"
|
||||
export HADOOP_PREFIX="/usr"
|
||||
export HADOOP_PREFIX=${HADOOP_PREFIX:-/usr}
|
||||
|
||||
start() {
|
||||
echo -n $"Starting $desc (hadoop-secondarynamenode): "
|
||||
|
|
Loading…
Reference in New Issue