Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8B039105D1 for ; Fri, 15 Nov 2013 13:24:38 +0000 (UTC) Received: (qmail 29188 invoked by uid 500); 15 Nov 2013 13:24:29 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 29050 invoked by uid 500); 15 Nov 2013 13:24:28 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 29043 invoked by uid 99); 15 Nov 2013 13:24:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Nov 2013 13:24:28 +0000 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tmp5330@gmail.com designates 209.85.215.44 as permitted sender) Received: from [209.85.215.44] (HELO mail-la0-f44.google.com) (209.85.215.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Nov 2013 13:24:23 +0000 Received: by mail-la0-f44.google.com with SMTP id ep20so2796192lab.31 for ; Fri, 15 Nov 2013 05:24:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/or4Mqtn7/6/oCHuOcxBtwNW6Z81tEZbWcRDPGwwFvE=; b=U+R2fJkU96mEr7z+xOOLUFGT1Rknc4FYityKWbEdmCoONZMGYzDN9YI6JXQksPq+Db q4Z1izZ17aIeMvAamwYEF5zVkRmrLELxwiArv4HjGTIDdLbwy62CrdPDTzlYvdVAC5cV OZTzTVE0PA0bMb3ebwyZUEP2kZj242p3a2wR7hLXpgkdPR148GZl3OgxzeRPT1zU20F2 mI50MF+saxS2Fbpbj1UdIbLjH1lMTfvvd+BO35OLgBh/yMouCaWiFaVblPm+heuw54/M koVGi56qlQOJkiLJkHv2V7H33PcOWmfmhCiKgbIQGd2/ge4DfDHV9euuaXtc4GpmX9+Z EHdg== MIME-Version: 1.0 X-Received: by 10.112.159.231 with SMTP id xf7mr4067323lbb.18.1384521842231; Fri, 15 Nov 2013 05:24:02 -0800 (PST) Received: by 10.114.18.14 with HTTP; Fri, 15 Nov 2013 05:24:02 -0800 (PST) In-Reply-To: References: Date: Fri, 15 Nov 2013 14:24:02 +0100 Message-ID: Subject: Re: Java Heap space Exception From: Rob Blah To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11c3c4fe97115404eb371c0d X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3c4fe97115404eb371c0d Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable MapReduce http://hortonworks.com/blog/how-to-plan-and-configure-yarn-in-hdp-2-0/ "We=92ll thus assign 4 GB for Map task Containers, and 8 GB for Reduce task= s Containers." You can try editing configuration file: mapreduce.map.memory.mb ? mapreduce.reduce.memory.mb ? Or set these in a driver. If you have custom AM, try this: Driver: capability.setMemory(amMemory); appContext.setResource(capability); AM: Resource capability =3D Records.newRecord(Resource.class); capability.setMemory(containerMemory); AMRMClient.ContainerRequest request =3D new AMRMClient.ContainerRequest(capability, null, null, pri); OR AM (use java command to set heap size): vargs.add("-Xmx" + containerMemory + "m"); 2013/11/15 Rob Blah > Question have you tried giving more memory to the containers? > > > 2013/11/15 unmesha sreeveni > >> ys found >> tried -D mapred.child.java.opts=3D-Xmx4096M on the command line: >> >> >> On Fri, Nov 15, 2013 at 3:01 PM, unmesha sreeveni wrote: >> >>> hadoop jar /home/my/hadoop2.jar /user/unmesha/inputdata /user/unmesha >>> /out >>> >>> >>> >>> On Fri, Nov 15, 2013 at 2:53 PM, unmesha sreeveni >> > wrote: >>> >>>> When i tried to execute my program with 100 MB file i am getting >>>> JavaHeapSpace Exception >>>> >>>> >>>> >hadoop jar /home/my/hadoop2.jar /user/unmesha/inputdata >>>> /user/inputdata/out >>>> >>>> How to increase the heap size through commandline >>>> >>>> >>>> -- >>>> *Thanks & Regards* >>>> >>>> Unmesha Sreeveni U.B >>>> >>>> *Junior Developer* >>>> >>>> >>>> >>> >>> >>> -- >>> *Thanks & Regards* >>> >>> Unmesha Sreeveni U.B >>> >>> *Junior Developer* >>> >>> >>> >> >> >> -- >> *Thanks & Regards* >> >> Unmesha Sreeveni U.B >> >> *Junior Developer* >> >> >> > --001a11c3c4fe97115404eb371c0d Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
MapReduce
http://horto= nworks.com/blog/how-to-plan-and-configure-yarn-in-hdp-2-0/
"We= =92ll thus assign 4 GB for Map task Containers, and 8 GB for Reduce tasks C= ontainers."

You can try editing configuration file:
<name>mapreduce.map.me= mory.mb</name>
<value>?</value>

<name>m= apreduce.reduce.memory.mb</name>
=A0<value>?</value>
Or set these in a driver.

If you have custom AM, try= this:
Driver:
capability.setMemory(amMemory);
appContext.se= tResource(capability);

AM:
Resource capability =3D Records.= newRecord(Resource.class);
capability.setMemory(containerMemory);
AMRMClient.ContainerRequest reque= st =3D new AMRMClient.ContainerRequest(capability, null, null, pri);
OR AM (use java command to set heap size):
vargs.add("-Xmx"= + containerMemory + "m");






2013/11/15 = Rob Blah <tmp5330@gmail.com>
Question have you tried giv= ing more memory to the containers?


2013/11/15 un= mesha sreeveni <unmeshabiju@gmail.com>
ys found=A0
tried -D mapred.chil= d.java.opts=3D-Xmx4096M on the command line:


On Fri, Nov 15, 2013 at 3:01 PM, unmesha sreeveni <= unmeshabiju@gmai= l.com> wrote:
hadoop jar /home/my/hadoop2.jar /user/un= mesha/inputdata /user/unmesha/out

<= div>


On Fri, N= ov 15, 2013 at 2:53 PM, unmesha sreeveni <unmeshabiju@gmail.com>= ; wrote:
When i tried to execute my progr= am with 100 MB file i am getting JavaHeapSpace Exception


>hadoop jar /h= ome/my/hadoop2.jar /user/unmesha/inputdata /user/inputdata/out

=
How t= o=A0increase=A0the heap size through commandline


--
Thanks & = Regards

Unmesha Sreeveni U.B
Junior Developer




--
Thanks & Regards

Unmesha Sreeveni U.B
Junior Developer




--
=
Thanks & Regards

Unmesha Sreeveni U.B
Junior Developer



--001a11c3c4fe97115404eb371c0d--