hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <tdunn...@veoh.com>
Subject Re: It seems the hadoop start scripts broken under cygwin and Fedora Core
Date Wed, 18 Jul 2007 16:33:39 GMT

It sounds to me like you have somehow aliased cd.  This may be due to a
sysadmin being too clever or due to your own profile.  Needless to say, this
is really bad practice.

Here is what I see on Redhat:

-bash-3.00$ cd /tmp
-bash-3.00$ 

(no output from cd)


On 7/18/07 9:15 AM, "charlie w" <spambait132@gmail.com> wrote:

> Specifically this:
> 
> bin=`dirname "$0"`
> bin=`cd "$bin"; pwd`
> 
> . "$bin"/hadoop-config.sh
> 
> The problem is that the 'cd' command on cygwin and Fedora is not silent, so
> if one tries:
> 
> bin/hadoop namenode format
> 
> one winds up with this output:
> 
> bin/hadoop: line 22: /home/charlie/hadoop-0.13.0/bin
> /home/charlie/bin/hadoop-config.sh: No such file or directory
> 
> It appears that simply adding >/dev/null to the cd command fixes things:
> 
>  bin=`cd "$bin" > /dev/null; pwd`


Mime
View raw message