When you install hadoop, you will required to create one user hadoop with group hadoop. and setup the SSH keys that it can login to the server without enter a password.
|#Create one group hadoop |
#create one user hadoop, create home directory
useradd –g hadoop –-create-home hadoop
#login as hadoop
su – hadoop
#generate ssh public/private keys
ssh-keygen –t rsa –P ‘’
# cp the public key to authorized_keys
cat .ssh/id_rsa.pub >> .ssh/authorized_keys
if you want to enable hadopp to access another server without login using ssh,
cat the .put key to the server authorized_keys files
#remember to setup the permission on the authorized_keys , that only owner can read/write, 600 permission, if you missed this step, you will be asked for password, even you setup the pub key to be trusted.
chmod 600 .ssh/authorized_keys
Now, you can login to localhost without password
More Hadoop Blogs