sudo addgroup hadoop
sudo adduser --ingroup hadoop hduser001
su -hduser001
ssh-keygen -t rsa -P ""
cat .ssh/id rsa.pub >> .ssh/authorized_keys
Note: If you get errors [bash: .ssh/authorized_keys: No such file or directory] whilst writing the authorized key. Check here.
sudo adduser hduser001 sudo
sudo add-apt-repository ppa:hadoop-ubuntu/stable
sudo apt-get install hadoop