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 31153D91E for ; Tue, 6 Nov 2012 04:47:27 +0000 (UTC) Received: (qmail 91972 invoked by uid 500); 6 Nov 2012 04:47:22 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 91691 invoked by uid 500); 6 Nov 2012 04:47:22 -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 91675 invoked by uid 99); 6 Nov 2012 04:47:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 04:47:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael_segel@hotmail.com designates 65.55.111.80 as permitted sender) Received: from [65.55.111.80] (HELO blu0-omc2-s5.blu0.hotmail.com) (65.55.111.80) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 04:47:13 +0000 Received: from BLU0-SMTP340 ([65.55.111.72]) by blu0-omc2-s5.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 5 Nov 2012 20:46:52 -0800 X-Originating-IP: [173.15.87.37] X-EIP: [bFh41OLFoHz5TxT0yCCHijNcfkoIyRiR] X-Originating-Email: [michael_segel@hotmail.com] Message-ID: Received: from [192.168.0.100] ([173.15.87.37]) by BLU0-SMTP340.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 5 Nov 2012 20:46:51 -0800 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: One mapper/reducer runs on a single JVM From: Michael Segel In-Reply-To: Date: Mon, 5 Nov 2012 22:46:54 -0600 Content-Transfer-Encoding: quoted-printable References: To: user@hadoop.apache.org X-Mailer: Apple Mail (2.1499) X-OriginalArrivalTime: 06 Nov 2012 04:46:51.0085 (UTC) FILETIME=[BCA527D0:01CDBBD9] X-Virus-Checked: Checked by ClamAV on apache.org Mappers and Reducers are separate JVM processes. And yes you need to take in to account the amount of memory the = machine(s) when you configure the number of slots.=20 If you are running just Hadoop, you could have a little swap. Running = HBase, fuggit about it.=20 On Nov 5, 2012, at 7:12 PM, Lin Ma wrote: > Hello Hadoop experts, >=20 > I have a question in my mind for a long time. Supposing I am = developing M-R program, and it is Java based (Java UDF, implements = mapper or reducer interface). My question is, in this scenario, whether = a mapper or a reducer is a separate JVM process? E.g. supposing on a = machine, there are 4 mappers, they are 4 individual processes? I am also = wondering whether the processes on a single machine will impact each = other when each JVM wants to get more memory to run faster? >=20 > thanks in advance, > Lin >=20 >=20