Starry,

        In ".ssh" directory you have to create a file "config" (without
extension) on every node.

Suppose server1 is your master and server2, server3 is your slave. 

On the master (server1), in the "config" file and add the following
lines:

Host server2
User user2
Host server3
User user3

On both slave (server2, server3) nodes, in the "config" file and add the
following lines:

Host server1
User user1

Hope it works for you

Regards
Aseem Puri


-----Original Message-----
From: Menno Luiten [mailto:mlui...@artifix.net] 
Sent: Monday, May 04, 2009 7:27 PM
To: core-user@hadoop.apache.org
Subject: RE: How to configure nodes with different user account?

Hi Starry,

What is the content of your 'slaves' file in the hadoop/conf directory
of your master node?
It should say something like:

localhost
us...@server2
us...@server3
us...@server4

This should let the start-up scripts try and login using the proper
users.

Hope that helps,
Menno

-----Oorspronkelijk bericht-----
Van: Starry SHI [mailto:starr...@gmail.com] 
Verzonden: maandag 4 mei 2009 10:53
Aan: core-user@hadoop.apache.org
Onderwerp: How to configure nodes with different user account?

Hi, all. I am new to Hadoop and I have a question to ask~

I have several accounts located in different linux servers (normal
user privilege, no admin authority), and i want to use them to form a
small cluster to run Hadoop applications. However, the usernames for
these accounts are different. I want to use shared key to connect all
the nodes, but I failed after several attempts. Is it possible to
connect all of them via different account?

For example, I have 3 account: us...@server1, us...@server2,
us...@server3. After assigning authorized keys, I can use "ssh
us...@server2" without input the password. But when I start hadoop, I
was asked to input the password for us...@server2 (when I have already
logged in as user1).

Can my problem be solved easily? I wish to get your help soon.

Thank you for all your attention and help!

Best regards,
Starry

Reply via email to