Browse Source

HADOOP-8386. hadoop script doesn't work if 'cd' prints to stdout (default behavior in Ubuntu). Contributed by Christopher Berner and Andy Isaacson. (harsh)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1391781 13f79535-47bb-0310-9956-ffa450edef68
Harsh J 13 years ago
parent
commit
e466051ba6
2 changed files with 5 additions and 1 deletions
  1. 4 0
      CHANGES.txt
  2. 1 1
      bin/hadoop

+ 4 - 0
CHANGES.txt

@@ -226,6 +226,10 @@ Release 1.2.0 - unreleased
     HADOOP-8791. Fix rm command documentation to indicte it deletes
     files and not directories. (Jing Zhao via suresh)
 
+    HADOOP-8386. hadoop script doesn't work if 'cd' prints to stdout
+    (default behavior in Ubuntu).
+    (Christopher Berner and Andy Isaacson via harsh)
+
 Release 1.1.0 - unreleased
 
   INCOMPATIBLE CHANGES

+ 1 - 1
bin/hadoop

@@ -48,7 +48,7 @@
 #
 
 bin=`dirname "$0"`
-bin=`cd "$bin"; pwd`
+bin=`cd "$bin" > /dev/null; pwd`
 
 if [ -e "$bin"/../libexec/hadoop-config.sh ]; then
   . "$bin"/../libexec/hadoop-config.sh