Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33065C0B6 for ; Wed, 2 May 2012 04:37:10 +0000 (UTC) Received: (qmail 68633 invoked by uid 500); 2 May 2012 04:37:06 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 68526 invoked by uid 500); 2 May 2012 04:37:04 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 68496 invoked by uid 99); 2 May 2012 04:37:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2012 04:37:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of harsh@cloudera.com designates 209.85.160.176 as permitted sender) Received: from [209.85.160.176] (HELO mail-gy0-f176.google.com) (209.85.160.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2012 04:36:55 +0000 Received: by ghbz10 with SMTP id z10so317459ghb.35 for ; Tue, 01 May 2012 21:36:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding:x-gm-message-state; bh=Lwii92zmBCTrIq+wqMFpcPmjUX1r989jI7piCbC/D+Q=; b=j32wxs382MJo+X/54MsIS8DPkSLs3QJUsWBhj/PTxxLBTIqzXN+1KN7M03JQiADjqD nFIewxAiGmOKewjNUBE/Aax0gzQiTT4b2/vBJRgvuX/61yWwrG/HFVCpczqITUnI1+Dm suo7YRJXyOp4vJ5MfoQqdvSaNBGcSsWSrqNHWzLmrhOFukn8welcrI31CJ/tN2q7Xt8z U1ttRoWwgN6Sx19FCLXVwRnczIQ4Q+LnKWhRUaoTjarj1/XevPPKqPEUb5F9ZjVaoMwg eEe7y0FNc8uMrRkdvpfabzSepGbX2WBQCxGbg+HJ5UE11sHfdRtQRJ3qFIW8AAAs/puy ETeg== Received: by 10.68.239.234 with SMTP id vv10mr6073577pbc.21.1335933393907; Tue, 01 May 2012 21:36:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.4.138 with HTTP; Tue, 1 May 2012 21:36:13 -0700 (PDT) In-Reply-To: References: From: Harsh J Date: Wed, 2 May 2012 10:06:13 +0530 Message-ID: Subject: Re: heap space error, low memory job, unit test To: common-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmjFCZtZEsWIPYzekbRmb0HV0C7AKMBwC46YoJ5J2FJNC7lwONjqkarjcGLM9R8/bIAdeZb What is your unit test runner JVM heap size? By default, for MR jobs the config "io.sort.mb" is "100" MB, so if it can't allocate that many bytes into an array then it would fail. Lower the "io.sort.mb" to "20" or so before submitting your job and that should help you get rid of this. On Wed, May 2, 2012 at 5:51 AM, Jay Vyas wrote: > Hi guys : > > > I have a map/r job that has always worked fine, but which fails due to a > heap space error on my local machine during unit tests. > > It runs in hadoop's default mode, and just fails durring the constructor = of > the MapOutputBuffer.... Any thoughts on why ? > > I dont do any custom memory settings in by unit tests, because they aren'= t > really needed --- So I assume this is related to /tmp files > or something ... but cant track down the issue. > > Any thoughts would be very much appreciated .. > > 12/05/01 19:15:53 WARN mapred.LocalJobRunner: job_local_0002 > java.lang.OutOfMemoryError: Java heap space > =A0 =A0at > org.apache.hadoop.mapred.MapTask$MapOutputBuffer.(MapTask.java:807) > =A0 =A0at > org.apache.hadoop.mapred.MapTask$NewOutputCollector.(MapTask.java:5= 57) > > > > > -- > Jay Vyas > MMSB/UCHC --=20 Harsh J