I have installed Hadoop and every time I want to run it, first I have to do this:
source ~/.bash_profile
or it won\'t recognize the command
Terminal -> Preference -> profile -> Shell -> Run command : source ~/.bash_profile
Tick on run inside shell.
After doing all those , just logout and check weather everything works fine or not