Browse Source

HADOOP-8010. hadoop-config.sh errors when HADOOP_HOME_WARN_SUPPRESS is set to true and HADOOP_HOME is present. Contributed by Roman Shaposhnik.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0@1238997 13f79535-47bb-0310-9956-ffa450edef68
Matthew Foley 13 years ago
parent
commit
f62544e99a
2 changed files with 4 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 1 1
      bin/hadoop-config.sh

+ 3 - 0
CHANGES.txt

@@ -21,6 +21,9 @@ Release 1.0.1 - 2012.01.30
     HADOOP-7964. Deadlock in NetUtils and SecurityUtil class initialization.
     (Daryn Sharp via suresh)
 
+    HADOOP-8010. hadoop-config.sh errors when HADOOP_HOME_WARN_SUPPRESS is set 
+    to true and HADOOP_HOME is present. (Roman Shaposhnik via mattf)
+
 Release 1.0.0 - 2011.12.15
 
   NEW FEATURES

+ 1 - 1
bin/hadoop-config.sh

@@ -70,7 +70,7 @@ if [ -f "${HADOOP_CONF_DIR}/hadoop-env.sh" ]; then
   . "${HADOOP_CONF_DIR}/hadoop-env.sh"
 fi
 
-if [ "$HADOOP_HOME_WARN_SUPPRESS" == "" ] && [ "$HADOOP_HOME" != "" ]; then
+if [ "$HADOOP_HOME_WARN_SUPPRESS" = "" ] && [ "$HADOOP_HOME" != "" ]; then
   echo "Warning: \$HADOOP_HOME is deprecated." 1>&2
   echo 1>&2
 fi