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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
postedJun 23, '09 at 6:58p
activeJun 23, '09 at 6:58p

1 user in discussion

Phil Hagelberg (JIRA): 1 post



site design / logo © 2021 Grokbase