views:

53

answers:

2

I try to run an executable file on newly installed Ubuntu and I get this strange error

>./hadoop

hadoop : Not a directoryh

>hadoop

hadoop command not found

the first error says "directoryh", what is the reason for these messages

A: 

You need to make it executable first

chmod 777 ./hadoop
./hadoop
Moox
This is overkill. You are giving everyone the rights to read, write and execute the file. And it looks like the user already has execution rights here.
Leiaz
I doubt he's working on a critical system, but for better security you could try another combination. In fact the best would be to read on up chmod and decide what best fits your needs.
Moox
I have tried chmod, it doesnot work.chmod 777 is not an issue for me as i am running this on a single node is pesudo-distributed mode.
Akhil
A: 

On Ubuntu you can try pre-packaged Cloudera's distribution. Works very well for me. Add repositories for your version of Ubuntu, create user 'hadoop' (no root required to access configuration files)

Wojtek