hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8386) hadoop script doesn't work if 'cd' prints to stdout (default behavior in Ubuntu)
Date Tue, 02 Oct 2012 12:43:19 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-8386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467669#comment-13467669
] 

Hudson commented on HADOOP-8386:
--------------------------------

Integrated in Hadoop-Hdfs-0.23-Build #392 (See [https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/392/])
    svn merge -c 1391780 FIXES: 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 1392368)

     Result = UNSTABLE
bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392368
Files : 
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/bin/hadoop
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/bin/mapred
* /hadoop/common/branches/branch-0.23/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, 0.23.5
>
>         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

Mime
View raw message