Browse Source

Merge change r1202378 for HADOOP-7816 from 0.20.205 branch

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security@1202379 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 13 năm trước cách đây
mục cha
commit
344f25cc21
2 tập tin đã thay đổi với 8 bổ sung5 xóa
  1. 3 0
      CHANGES.txt
  2. 5 5
      bin/hadoop

+ 3 - 0
CHANGES.txt

@@ -101,6 +101,9 @@ Release 0.20.205.1 - unreleased
     if the override value is same as the final parameter value.
     if the override value is same as the final parameter value.
     (Ravi Prakash via szetszwo)
     (Ravi Prakash via szetszwo)
 
 
+    HADOOP-7816. Allow HADOOP_HOME deprecated warning suppression based 
+    on config specified in hadoop-env.sh (Dave Thompson via suresh)
+
   BUG FIXES
   BUG FIXES
 
 
     HADOOP-7815. Fixed configuring map memory mb in hadoop-setup-conf.sh.
     HADOOP-7815. Fixed configuring map memory mb in hadoop-setup-conf.sh.

+ 5 - 5
bin/hadoop

@@ -50,17 +50,17 @@
 bin=`dirname "$0"`
 bin=`dirname "$0"`
 bin=`cd "$bin"; pwd`
 bin=`cd "$bin"; pwd`
 
 
-if [ "$HADOOP_HOME_WARN_SUPPRESS" == "" ] && [ "$HADOOP_HOME" != "" ]; then
-  echo "Warning: \$HADOOP_HOME is deprecated." 1>&2
-  echo 1>&2
-fi
-
 if [ -e "$bin"/../libexec/hadoop-config.sh ]; then
 if [ -e "$bin"/../libexec/hadoop-config.sh ]; then
   . "$bin"/../libexec/hadoop-config.sh
   . "$bin"/../libexec/hadoop-config.sh
 else
 else
   . "$bin"/hadoop-config.sh
   . "$bin"/hadoop-config.sh
 fi
 fi
 
 
+if [ "$HADOOP_HOME_WARN_SUPPRESS" == "" ] && [ "$HADOOP_HOME" != "" ]; then
+  echo "Warning: \$HADOOP_HOME is deprecated." 1>&2
+  echo 1>&2
+fi
+
 cygwin=false
 cygwin=false
 case "`uname`" in
 case "`uname`" in
 CYGWIN*) cygwin=true;;
 CYGWIN*) cygwin=true;;