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

Steve McCarthy commented on HADOOP-6101:
----------------------------------------

I ran into this as well.  An alternate solution would be to change the lines in 
the scripts to 

bin=`cd "$bin" > /dev/null; pwd`

> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to