I edit the first line of  file
"~/Software/Development/Hadoop/hadoop-0.20.2/bin/hadoop-daemon.sh" 
and then execute bin/start-all.sh, it displays the following message:

...........
...........
slave1: 
/home/maohong/Software/Development/Hadoop/hadoop-0.20.2/bin/hadoop-daemon.sh: 
line 39: dirname: command not found
slave1: 
/home/maohong/Software/Development/Hadoop/hadoop-0.20.2/bin/hadoop-daemon.sh: 
line 42: 
/home/maohong/Software/Development/Hadoop/hadoop-0.20.2/hadoop-config.sh: No 
such file or directory
slave1: 
/home/maohong/Software/Development/Hadoop/hadoop-0.20.2/bin/hadoop-daemon.sh: 
line 75: mkdir: command not found
slave1: Usage: hadoop-daemon.sh [--config <conf-dir>] [--hosts
hostlistfile] (start|stop) <hadoop-command> <args...>
..........
..........

It seems that the problem lies in the first line of the
file /bin/hadoop-daemon.sh. 

What do you think? How to configure it correctly ? 


在 2010-03-23二的 21:23 +0800,liu chang写道:

> On Tue, Mar 23, 2010 at 9:11 PM, 毛宏 <[email protected]> wrote:
> > I use "file /usr/bin/env" to check if /usr/bin/env is present in my
> > system and the answer is yes.
> > But why does it still display
> >  datanode1:/usr/bin/env : bash:  No such file or directory
> >  datanode2:/usr/bin/env : bash:  No such file or directory        ?
> 
> Can you execute the 'bash' command at your shell? What UNIX system do you use?
> 
> > 在 2010-03-23二的 19:56 +0800,liu chang写道:
> >> Sorry, your error message says bash is not found. You should already
> >> have /usr/bin/env.
> >>
> >> Bash is installed by default in most Linux distributions. It could be
> >> that bash is not installed on your system, or your PATH environmental
> >> variable is somehow messed up. Can you execute 'bash' in your shell?
> >>
> >> On Tue, Mar 23, 2010 at 7:51 PM, liu chang <[email protected]> wrote:
> >> > Check if /usr/bin/env is present in your system:
> >> >
> >> > file /usr/bin/env
> >> >
> >> > If not, you probably have /bin/env instead. Verify using:
> >> >
> >> > file /bin/env
> >> >
> >> > If you have /bin/env but not /usr/bin/env, you can make a symbolic link 
> >> > for it:
> >> >
> >> > ln -s /usr/bin/env /bin/env
> >> >
> >> > You need to execute the command above as root.
> >> >
> >> > Liu Chang
> >> >
> >> > On Tue, Mar 23, 2010 at 7:48 PM, 毛宏 <[email protected]> wrote:
> >> >> Hi all,
> >> >>        I install Hadoop in three machines, my pc is the namenode, two 
> >> >> other pc
> >> >> are the datanodes, but when I execute  bin/start-dfs.sh, it displays
> >> >> these two line as follows:
> >> >>                               datanode1: /usr/bin/env: bash: No such
> >> >> file or directory
> >> >>                               datanode2: /usr/bin/env: bash: No such
> >> >> file or directory
> >> >>
> >> >>        What does it mean?  How to solve this problem?
> >> >>        Thanks for your attention~
> >> >>
> >> >>
> >> >
> >
> >
> >


Reply via email to