Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 52088D6DE for ; Sat, 29 Sep 2012 13:16:13 +0000 (UTC) Received: (qmail 64890 invoked by uid 500); 29 Sep 2012 13:16:11 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 64844 invoked by uid 500); 29 Sep 2012 13:16:11 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 64832 invoked by uid 99); 29 Sep 2012 13:16:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Sep 2012 13:16:11 +0000 Date: Sun, 30 Sep 2012 00:16:11 +1100 (NCT) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1554792858.143140.1348924571565.JavaMail.jiratomcat@arcas> In-Reply-To: <1773962500.48100.1336628757208.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-8386) hadoop script doesn't work if 'cd' prints to stdout (default behavior in Ubuntu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-8386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466227#comment-13466227 ] Hudson commented on HADOOP-8386: -------------------------------- Integrated in Hadoop-Mapreduce-trunk #1211 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1211/]) HADOOP-8386. hadoop script doesn't work if 'cd' prints to stdout (default behavior in Ubuntu). Contributed by Christopher Berner and Andy Isaacson. (harsh) (Revision 1391780) Result = FAILURE harsh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1391780 Files : * /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs * /hadoop/common/trunk/hadoop-mapreduce-project/bin/mapred * /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/bin/yarn > hadoop script doesn't work if 'cd' prints to stdout (default behavior in Ubuntu) > -------------------------------------------------------------------------------- > > Key: HADOOP-8386 > URL: https://issues.apache.org/jira/browse/HADOOP-8386 > Project: Hadoop Common > Issue Type: Bug > Components: scripts > Affects Versions: 1.0.2 > Environment: Ubuntu > Reporter: Christopher Berner > Assignee: Christopher Berner > Fix For: 1.2.0, 3.0.0 > > Attachments: hadoop-8386-1.diff, hadoop-8386-1.diff, hadoop-8386.diff, hadoop.diff > > > if the 'hadoop' script is run as 'bin/hadoop' on a distro where the 'cd' command prints to stdout, the script will fail due to this line: 'bin=`cd "$bin"; pwd`' > Workaround: execute from the bin/ directory as './hadoop' > Fix: change that line to 'bin=`cd "$bin" > /dev/null; pwd`' -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira