Thanks Andy, I got your point :-),
What I have done earlier.. I have configured 1) One as a Master ( plays role of both Name node and Data Node) 2) Second as a Slave ( Only date node) I have give same name to both Machines and they have Admin access. pluto ( for both Master and Slave). and generated ssh key pair through this way Master:~ mediaadmin$ ssh-keygen -t rsa -P " " Generating public/private rsa key pair. Enter file in which to save the key (/Users/mediaadmin/.ssh/id_rsa): /Users/mediaadmin/.ssh/id_rsa already exists. Overwrite (y/n)? y Your identification has been saved in /Users/mediaadmin/.ssh/id_rsa. Your public key has been saved in /Users/mediaadmin/.ssh/id_rsa.pub. The key fingerprint is: 32:0f:be:7a:ea:44:a1:4a:b6:b1:85:3f:1f:56:48:4b mediaadmin@Master The key's randomart image is: +--[ RSA 2048]----+ | | | | | .E | | ..o.o | | =...o+.S | |o.*. ..= | |.o o.o. . | | .+ o. | | .+=. | +-----------------+ Copy to home Master:~ mediaadmin$ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys and copy to Slave Node as mediaadmin$ cat ~/.ssh/id_rsa.pub | ssh pluto@Slave 'cat >> ~/.ssh/authorized_keys' Login to Slave node Master:~ mediaadmin$ ssh pluto@Slave Last login: Thu Oct 25 18:54:15 2012 from 10.203.33.80 and Log out plutos-iMac:~ pluto$ exit logout Connection to Slave closed. Login to Master node (here it asks for password) Master:~ mediaadmin$ ssh Master Password: Last login: Thu Oct 25 19:03:27 2012 from master HERE COMES THE ISSUE when I run start-dfs.sh, its asks for password and I did enter the pass word of Master but i didn't accept. Master:~ mediaadmin$ start-dfs.sh starting namenode, logging to /HADOOP/hadoop-0.20.2/bin/../logs/hadoop-mediaadmin-namenode-Master.out Password:Password: Password: Password: Slave: Permission denied (publickey,keyboard-interactive). Password: Master: starting datanode, logging to /HADOOP/hadoop-0.20.2/bin/../logs/hadoop-mediaadmin-datanode-Master.out Password: Master: starting secondarynamenode, logging to /HADOOP/hadoop-0.20.2/bin/../logs/hadoop-mediaadmin-secondarynamenode-Master.out When I enter password of Slave then it again goes like this. Master:~ mediaadmin$ start-dfs.sh starting namenode, logging to /HADOOP/hadoop-0.20.2/bin/../logs/hadoop-mediaadmin-namenode-Master.out Password:Password: Password: Password: Password: Password: Master: Permission denied (publickey,keyboard-interactive). Slave: Permission denied (publickey,keyboard-interactive). Password: Password: Password: Master: Permission denied (publickey,keyboard-interactive). Please suggest me where I am going wrong, and why is asking for password when I configured it as password less SSH, where I doing mistake in SSH or some thing else. Thanks & Regards Yogesh Kumar Dhari From: andy.kartas...@mpac.ca To: user@hadoop.apache.org Subject: RE: ERROR:: SSH failour for distributed node hadoop cluster Date: Thu, 25 Oct 2012 16:37:36 +0000 Yogesh, One need to understand how passwordless ssh work. Say there is a user “yosh” He types ssh localhost and is prompted for a password. This is how to resolve this. 1. Type : ssh-keygen -t rsa -t stand for type and rsa (encryption) - another type will be dsa. Well, after you run above command, a pair of private and public keys is generated and stored in your /home/yosh/.ssh folder. “cd” in there and you will see two files. Id_rsa (private key) and id_rsa_pub (public key). If you create a file called “authorized_keys” and place your public key in there you will achieve psswdless access. How to do it? 2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys The above command reads your PubKey and appends to the file. After that try “ssh localhost” again. Voila! No more password request. Now, imagine you are ssh-ing into this very same machine from another computer where u log-in as yosh. “ssh < ip>”. The machine will similarly let you in without password. p.s. If you do not know ip address of that machine, find out by simply typing “hostname –i”. Happy hadoop’ing. AK47 From: yogesh dhari [mailto:yogeshdh...@live.com] Sent: Thursday, October 25, 2012 12:12 PM To: hadoop helpforoum Subject: RE: ERROR:: SSH failour for distributed node hadoop cluster Hi Andy, I am still at that point, not able to solve it yet Please help, Same issue with all settings and commands I have raise by Subject ERROR: : Hadoop Installation in distributed mode. to the mailing llist. Thanks & Regards Yogesh Kumar From: andy.kartas...@mpac.ca To: user@hadoop.apache.org Subject: RE: ERROR:: SSH failour for distributed node hadoop cluster Date: Thu, 25 Oct 2012 16:01:56 +0000 Yogesh, Have you figured it out? I had the same issue (needed passwordless ssh) and managed. Let me know if you are still stuck. AK47 From: yogesh.kuma...@wipro.com [mailto:yogesh.kuma...@wipro.com] Sent: Thursday, October 25, 2012 4:28 AM To: user@hadoop.apache.org Subject: ERROR:: SSH failour for distributed node hadoop cluster Importance: High Hi all, I am trying to run the command ssh Master it runs and shows after entering password. Password: abc Last login: Thu Oct 25 13:51:06 2012 from master But ssh for Slave through error. ssh Slave it asks for password ans denie Password: abc Password: abc Password: abc Permission denied (publickey,keyboard-interactive). Please suggest. Thanks & regards Yogesh Kumar Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com NOTICE: This e-mail message and any attachments are confidential, subject to copyright and may be privileged. Any unauthorized use, copying or disclosure is prohibited. If you are not the intended recipient, please delete and contact the sender immediately. Please consider the environment before printing this e-mail. AVIS : le présent courriel et toute pièce jointe qui l'accompagne sont confidentiels, protégés par le droit d'auteur et peuvent être couverts par le secret professionnel. Toute utilisation, copie ou divulgation non autorisée est interdite. Si vous n'êtes pas le destinataire prévu de ce courriel, supprimez-le et contactez immédiatement l'expéditeur. Veuillez penser à l'environnement avant d'imprimer le présent courriel NOTICE: This e-mail message and any attachments are confidential, subject to copyright and may be privileged. Any unauthorized use, copying or disclosure is prohibited. If you are not the intended recipient, please delete and contact the sender immediately. Please consider the environment before printing this e-mail. AVIS : le présent courriel et toute pièce jointe qui l'accompagne sont confidentiels, protégés par le droit d'auteur et peuvent être couverts par le secret professionnel. Toute utilisation, copie ou divulgation non autorisée est interdite. Si vous n'êtes pas le destinataire prévu de ce courriel, supprimez-le et contactez immédiatement l'expéditeur. Veuillez penser à l'environnement avant d'imprimer le présent courriel