You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2014/07/31 00:16:41 UTC

[jira] [Resolved] (HADOOP-6101) CDPATH environment variable causes bin scripts to fail.

     [ https://issues.apache.org/jira/browse/HADOOP-6101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Allen Wittenauer resolved HADOOP-6101.
--------------------------------------

    Resolution: Duplicate

Next version of HADOOP-9902 will include this fix. Closing as a dupe.

> CDPATH environment variable causes bin scripts to fail.
> -------------------------------------------------------
>
>                 Key: HADOOP-6101
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6101
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 0.19.1
>            Reporter: Phil Hagelberg
>            Priority: Minor
>
> Most of the scripts in bin/* assume that cd produces no output. But when using bash (and some other shells) cd will output the destination directory if the CDPATH environment variable is set. CDPATH is very useful, and it's unfortunate to have to unset it to use Hadoop.
> The offending line (in start-all.sh, though most of the scripts exhibit the problem) is:
>   bin=`cd "$bin"; pwd`
> Adding this to the top of each affected script will fix the problem:
>   unset CDPATH



--
This message was sent by Atlassian JIRA
(v6.2#6252)