Sorry I'm not a unix expert, however the problem is clearly related to whoami since this throws an error.
I run hadoop in all kind of configuration super smooth on my os x boxes.
Maybe rename or move /sw/whoami for a test.
Also make sure you restart the os x console since changes in .bash_profile are only picked up if you "relogin" into the command line.
Sorry that is all I know and could guess.. :(

On Jun 23, 2008, at 10:56 PM, Lev Givon wrote:

Yes; I have my PATH configured to list /sw/bin before
/usr/bin. Curiously, hadoop tries to invoke /sw/bin/whoami even when I
set PATH to

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/ bin:/usr/local/bin

before starting the daemons and attempting to run the job.

                                                      L.G.

Received from Stefan Groschupf on Mon, Jun 23, 2008 at 04:49:23PM EDT:
The fink part and /sw confuses me.  When I do a which on my os x I
get: $ which whoami /usr/bin/whoami Are you using the same whoami on
your console as hadoop?

On Jun 23, 2008, at 10:37 PM, Lev Givon wrote:

Both the daemons and the job were started using the same user.

                                                    L.G.

Received from Stefan Groschupf on Mon, Jun 23, 2008 at 04:34:54PM EDT:
Which user runs the hadoop? It should be the same you trigger the job
with.

On Jun 23, 2008, at 10:29 PM, Lev Givon wrote:

I recently installed hadoop 0.17.0 in pseudo-distributed mode on a
MacOSX 10.5.3 system with software managed by Fink installed in / sw. I
configured hadoop to use the stock Java 1.5.0_13 installation in
/Library/Java/Home. When I attempted to run a simple map/reduce job off of the dfs after starting up the daemons, the job failed with the
following Java error (501 is the ID of the user used to start the
hadoop daemons and run the map/reduce job):

javax.security.auth.login.LoginException: Login failed:
/sw/bin/whoami: cannot find name for user ID 501

What might be causing this to occur? Manually running /sw/bin/ whoami
as the user in question returns the corresponding username.

                                                        L.G.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101tec Inc.
Menlo Park, California, USA
http://www.101tec.com




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101tec Inc.
Menlo Park, California, USA
http://www.101tec.com




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101tec Inc.
Menlo Park, California, USA
http://www.101tec.com


Reply via email to