Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 73177 invoked from network); 31 Dec 2008 21:06:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Dec 2008 21:06:45 -0000 Received: (qmail 13574 invoked by uid 500); 31 Dec 2008 21:06:39 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 13540 invoked by uid 500); 31 Dec 2008 21:06:39 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 13529 invoked by uid 99); 31 Dec 2008 21:06:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Dec 2008 13:06:39 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.145.54.171] (HELO mrout1.yahoo.com) (216.145.54.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Dec 2008 21:06:28 +0000 Received: from [248.220.50.1] (proxy7.corp.yahoo.com [216.145.48.98]) by mrout1.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id mBVL5pjI090689 for ; Wed, 31 Dec 2008 13:05:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:subject: references:in-reply-to:content-type:content-transfer-encoding; b=XdchXPAhZ/jNsdBkT5o0sNCUCTI0ajlDBfGXXm3+MAiTEbrF1o8JS1r1m0lrc5gc Message-ID: <495BDEB2.5020007@yahoo-inc.com> Date: Wed, 31 Dec 2008 13:05:54 -0800 From: Raghu Angadi User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: core-user@hadoop.apache.org Subject: Re: cannot allocate memory error References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Your OS is running out of memory. Usually a sign of too many processes (or threads) on the machine. Check what else is happening on the system. Raghu. sagar arlekar wrote: > Hello, > > I am new to hadoop. I am running hapdoop 0.17 in a Eucalyptus cloud > instance (its a centos image on xen) > > bin/hadoop dfs -ls / > gives the following Exception > > 08/12/31 08:58:10 WARN fs.FileSystem: "localhost:9000" is a deprecated > filesystem name. Use "hdfs://localhost:9000/" instead. > 08/12/31 08:58:10 WARN fs.FileSystem: uri=hdfs://localhost:9000 > javax.security.auth.login.LoginException: Login failed: Cannot run > program "whoami": java.io.IOException: error=12, Cannot allocate > memory > at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:250) > at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:275) > at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:257) > at org.apache.hadoop.security.UserGroupInformation.login(UserGroupInformation.java:67) > at org.apache.hadoop.fs.FileSystem$Cache$Key.(FileSystem.java:1353) > at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1289) > at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:203) > at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:108) > at org.apache.hadoop.fs.FsShell.init(FsShell.java:87) > at org.apache.hadoop.fs.FsShell.run(FsShell.java:1717) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) > at org.apache.hadoop.fs.FsShell.main(FsShell.java:1866) > Bad connection to FS. command aborted. > > Running the command again gives. > bin/hadoop dfs -ls / > Error occurred during initialization of VM > Could not reserve enough space for object heap > > Changing value of 'mapred.child.java.opts' property in hadoop-site.xml > did not help. > > Kindly help me. What could I do to give more memory to hadoop? > > BTW is there a way to search through the mail archive? I only saw the > mails listed according to year and months. > > Regards, > Sagar