Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 E4D2A10770 for ; Wed, 6 Nov 2013 02:59:47 +0000 (UTC) Received: (qmail 39251 invoked by uid 500); 6 Nov 2013 02:59:43 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 38999 invoked by uid 500); 6 Nov 2013 02:59:43 -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 38992 invoked by uid 99); 6 Nov 2013 02:59:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 02:59:43 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of unmeshabiju@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vb0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 02:59:38 +0000 Received: by mail-vb0-f45.google.com with SMTP id p6so3050073vbe.32 for ; Tue, 05 Nov 2013 18:59:18 -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=rXGLv1hWpjxSVdV0ZTBN8txUT4wiAEU1u6MLoaBeR4Q=; b=cf533whOXZt3oP3lg46wKoBUosJZOEnXRJZ1pKQDLMBvj5dWH4bkq2lffi9glLe8f7 jaRq0Kaz1X1wo38DfufGalk04vY4UyBEm4lUgO5iGabbS3QWWXJ8gTqGwTvBY+GRYteF lajmMIfd6nH6K1oYeWFC90QJP5mcDm4VkoTy5Ikez6jwNku3JFFfcHrgLBYgP9HoHgw7 w0xA9OUGaO+KqV3+O3JxapKvNMgsUFQ51hMpc/bXJHh2lXctG37LfZnVnglUmOM5XWFx NRG2KuPnBK2VDbcKlG/7k2EpNy7cOOk14nVqjRNRogbPRcA5CHQ52zOJeG3L6RIUuO79 h44Q== MIME-Version: 1.0 X-Received: by 10.221.54.129 with SMTP id vu1mr540470vcb.20.1383706757741; Tue, 05 Nov 2013 18:59:17 -0800 (PST) Received: by 10.59.8.2 with HTTP; Tue, 5 Nov 2013 18:59:17 -0800 (PST) In-Reply-To: <5278EB90.8070602@gmail.com> References: <5278EB90.8070602@gmail.com> Date: Wed, 6 Nov 2013 08:29:17 +0530 Message-ID: Subject: Re: which is better : form reducer or Driver From: unmesha sreeveni To: User Hadoop Content-Type: multipart/alternative; boundary=001a11338742c4c12d04ea79554b X-Virus-Checked: Checked by ClamAV on apache.org --001a11338742c4c12d04ea79554b Content-Type: text/plain; charset=ISO-8859-1 i am dealing with multiple mappers and 1 reducer. so which is best? On Tue, Nov 5, 2013 at 6:28 PM, Chris Mawata wrote: > If you have multiple reducers you are doing it in parallel while in the > driver it is surely single threaded so my bet would be on the reducers. > > Chris > > > On 11/5/2013 6:15 AM, unmesha sreeveni wrote: > > I am emiting 'A' value and 'B' value from reducer. > > I need to do further calculations also. > which is a better way? > 1. Do all remamining computations within reducer , after emiting > or > 2.Do remaining computation In driver: read A and B value from part file > and do further computations. > > Pls suggest a better way. > > -- > *Thanks & Regards* > > Unmesha Sreeveni U.B > > *Junior Developer * > > *Amrita Center For Cyber Security * > > > * Amritapuri. www.amrita.edu/cyber/ * > > > -- *Thanks & Regards* Unmesha Sreeveni U.B *Junior Developer* *Amrita Center For Cyber Security* * Amritapuri.www.amrita.edu/cyber/ * --001a11338742c4c12d04ea79554b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
i am dealing with multiple mappers and 1 reducer. so which is b= est?


On Tue, Nov 5, 2013 at 6:28 PM, Chris Mawata <chris.mawata@gmail.c= om> wrote:
=20 =20 =20
If you have multiple reducers you are doing it in parallel while in the driver it is surely single threaded so my bet would be on the reducers.

Chris


On 11/5/2013 6:15 AM, unmesha sreeveni wrote:
I am emiting 'A' value and 'B' value from reducer.

I need to do further calculations also.
which is a better way?
1. Do all remamining computations within reducer , after emiting=A0
or
2.Do remaining computation In driver: read A and B value from part file and do further computations.

Pls suggest a better way.

--
Thanks & Regards

Unmesha Sreeveni U.B
Junior Developer
Amrita Center For Cyber Security




--
Thanks & Regards

Unmesha Sreeveni U.B
Junior Developer
Amrita Center For Cyber Security
--001a11338742c4c12d04ea79554b--