Monday, February 16, 2009

Setup passphraseless ssh for Hadoop in Fedora 10

To run Hadoop it is necessary (at least that is what I know) to be able to ssh to the localhost without a passphrase. The Hadoop quick start guide has simple instructions on how to do that. The first time I installed and ran Hadoop was for a class project and I worked in a pc having Ubuntu 8.04. I could follow all the instructions of that guide without any problem. But this time when I wanted to run it on my laptop having Fedora 10, the passphraseless ssh was not working. I searched the internet for a solution and I found an excellent one here, thanks to Daniel Owen for the article. The trick is in the permissions. The authorized_keys file must have the permission 644. Anything other than that does not work. The known_host file created by ssh client also has the same permission.

7 comments:

Visit us at http://www.teachertube.com said...

Hi, I am Jason Smith CEO of TeacherTube.com located in in North Dallas. We are an online community for educators. We average just over a million visitors a month during the school year. We just released this week TeacherTube MySite which allows educators to have their own TeacherTube. We are running this on Hadoop. We are looking for students that have a strong grasp of Hadoop that are looking for a part-time job. They are no where to be found. Do you have any suggestions on where to find such students?

Thanks,
Jason Smith
Jason@teachertube.com

Manuel Medina said...

Thanks a lot! This was driving me crazy because in Ubuntu I didn't have this problem. I never thought about the permissions. You saved me a lot of time!

Russoue said...

No problem!

Oded Peer said...

+1

Nuno said...

Thank you so much for this post!!!

Mohammad Husain said...

Glad to be able to help you.

jake george said...
This comment has been removed by a blog administrator.