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
Not sure if this is the best solution but it works.
sudo nano /etc/bashrc and change that, restarted the terminal and it finally remembered with command. Tried ~/.bash_profile and ~/.bashrc without success, just wasn't sourcing it.
sudo nano /etc/bashrc
~/.bash_profile
~/.bashrc