Error occurred during initialization of VM

At loghorn server, sometimes you may get this error:

hr4757@login1:~$ hadoop fs -ls

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

This error occurs when there are too many processes of other jobs that take up too much the memory (usually visualization jobs).

In this case, simply ssh to the master namenode and run hadoop there.

hr4757@login1:~$ qstat

job-ID prior name user state submit/start at queue slots ja-task-ID

-----------------------------------------------------------------------------------------------------------------

39661 1.07500 Hadoop-wil hr4757 r 12/08/2010 16:40:02 hadoop@c202-115.longhorn 128

hr4757@login1:~$ ssh c202-115

Warning: untrusted X11 forwarding setup failed: xauth key data not generated

Warning: No xauth data; using fake authentication data for X11 forwarding.

Last login: Wed Dec 8 19:35:50 2010 from login1.longhorn

Rocks Compute Node

Rocks 5.2 (Chimichanga)

Profile built 17:21 07-Dec-2009

Kickstarted 12:27 07-Dec-2009

hr4757@c202-115:~$ hadoop fs -ls