linux - Permission Denied error while ssh into datanode during setup of hadoop 1.2.1 multi-node cluster on centOS -
i learning setup hadoop multi-node cluster on centos , not able ssh datanodes.
i have tried copying public key namenode datanodes using root user. when login using user other root , try ssh datanodes gives permission denied error.following copy of etc/host file
for cluster setup , working, hadoop needs able establish secure shell connections without passing passphrase.
main steps involved in setting password-less access configuration are:
step-1)
generate public private keys on namenode(s) , jobtracker/resourcemanager
ssh-keygen -t dsa -p '' -f ~/.ssh/id_dsa
step-2)
combine public keys these hosts , combine authorized_keys file.
step-3)
copy authorized_keys file in ~/.ssh/ on hosts in cluster.
scp authorized_keys user@192.168.1.100:~/.ssh/ scp authorized_keys user@192.168.1.101:~/.ssh/ scp authorized_keys user@192.168.1.102:~/.ssh/ . . scp authorized_keys user@192.168.1.xxx:~/.ssh/
here user
example user , 192.168.1.100--xxx
ips of servers in cluster.
now need these step (1-3) every user want ssh other hosts.
e.g if want ssh 192.168.1.100 testuser.
ssh testuser@192.168.1.100
then have step (1-3) testuser.
Comments
Post a Comment