hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1208936 - in /hadoop/common/branches/branch-1: CHANGES.txt bin/hadoop bin/hadoop-config.sh
Date Thu, 01 Dec 2011 02:40:30 GMT
Author: mattf
Date: Thu Dec  1 02:40:29 2011
New Revision: 1208936

URL: http://svn.apache.org/viewvc?rev=1208936&view=rev
Log:
HADOOP-7869. HADOOP_HOME warning happens all of the time. Contributed by Owen O'Malley

Modified:
    hadoop/common/branches/branch-1/CHANGES.txt
    hadoop/common/branches/branch-1/bin/hadoop
    hadoop/common/branches/branch-1/bin/hadoop-config.sh

Modified: hadoop/common/branches/branch-1/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/CHANGES.txt?rev=1208936&r1=1208935&r2=1208936&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/CHANGES.txt (original)
+++ hadoop/common/branches/branch-1/CHANGES.txt Thu Dec  1 02:40:29 2011
@@ -160,6 +160,9 @@ Release 1.0.0 - unreleased
 
   BUG FIXES
 
+    HADOOP-7869. HADOOP_HOME warning happens all of the time (Owen O'Malley 
+    via mattf)
+
     HADOOP-7815. Fixed configuring map memory mb in hadoop-setup-conf.sh. 
     (Ramya Sunil)
 

Modified: hadoop/common/branches/branch-1/bin/hadoop
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/bin/hadoop?rev=1208936&r1=1208935&r2=1208936&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/bin/hadoop (original)
+++ hadoop/common/branches/branch-1/bin/hadoop Thu Dec  1 02:40:29 2011
@@ -56,11 +56,6 @@ else
   . "$bin"/hadoop-config.sh
 fi
 
-if [ "$HADOOP_HOME_WARN_SUPPRESS" == "" ] && [ "$HADOOP_HOME" != "" ]; then
-  echo "Warning: \$HADOOP_HOME is deprecated." 1>&2
-  echo 1>&2
-fi
-
 cygwin=false
 case "`uname`" in
 CYGWIN*) cygwin=true;;
@@ -103,10 +98,6 @@ fi
 COMMAND=$1
 shift
 
-if [ -f "${HADOOP_CONF_DIR}/hadoop-env.sh" ]; then
-  . "${HADOOP_CONF_DIR}/hadoop-env.sh"
-fi
-
 # Determine if we're starting a secure datanode, and if so, redefine appropriate variables
 if [ "$COMMAND" == "datanode" ] && [ "$EUID" -eq 0 ] && [ -n "$HADOOP_SECURE_DN_USER"
]; then
   HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR

Modified: hadoop/common/branches/branch-1/bin/hadoop-config.sh
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/bin/hadoop-config.sh?rev=1208936&r1=1208935&r2=1208936&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/bin/hadoop-config.sh (original)
+++ hadoop/common/branches/branch-1/bin/hadoop-config.sh Thu Dec  1 02:40:29 2011
@@ -32,7 +32,6 @@ this="$config_bin/$script"
 
 # the root of the Hadoop installation
 export HADOOP_PREFIX=`dirname "$this"`/..
-export HADOOP_HOME=${HADOOP_PREFIX}
 
 #check to see if the conf dir is given as an optional argument
 if [ $# -gt 1 ]
@@ -66,3 +65,16 @@ then
         export HADOOP_SLAVES="${HADOOP_CONF_DIR}/$slavesfile"
     fi
 fi
+
+if [ -f "${HADOOP_CONF_DIR}/hadoop-env.sh" ]; then
+  . "${HADOOP_CONF_DIR}/hadoop-env.sh"
+fi
+
+if [ "$HADOOP_HOME_WARN_SUPPRESS" == "" ] && [ "$HADOOP_HOME" != "" ]; then
+  echo "Warning: \$HADOOP_HOME is deprecated." 1>&2
+  echo 1>&2
+fi
+
+export HADOOP_HOME=${HADOOP_PREFIX}
+export HADOOP_HOME_WARN_SUPPRESS=1
+



Mime
View raw message