hadoop-yarn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject svn commit: r1391780 - /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn
Date Sat, 29 Sep 2012 10:57:53 GMT
Author: harsh
Date: Sat Sep 29 10:57:53 2012
New Revision: 1391780

URL: http://svn.apache.org/viewvc?rev=1391780&view=rev
Log:
HADOOP-8386. hadoop script doesn't work if 'cd' prints to stdout (default behavior in Ubuntu).
Contributed by Christopher Berner and Andy Isaacson. (harsh)


Modified:
    hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn

Modified: hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn?rev=1391780&r1=1391779&r2=1391780&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn (original)
+++ hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn Sat Sep 29 10:57:53 2012
@@ -47,7 +47,7 @@
 #
 
 bin=`dirname "${BASH_SOURCE-$0}"`
-bin=`cd "$bin"; pwd`
+bin=`cd "$bin" > /dev/null; pwd`
 
 DEFAULT_LIBEXEC_DIR="$bin"/../libexec
 HADOOP_LIBEXEC_DIR=${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}



Mime
View raw message