Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 5074318A61 for ; Fri, 21 Aug 2015 17:35:36 +0000 (UTC) Received: (qmail 83774 invoked by uid 500); 21 Aug 2015 17:35:25 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 83648 invoked by uid 500); 21 Aug 2015 17:35:25 -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 83638 invoked by uid 99); 21 Aug 2015 17:35:25 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2015 17:35:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 93F811AA96B for ; Fri, 21 Aug 2015 17:35:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id bX8JULGfZXrx for ; Fri, 21 Aug 2015 17:35:23 +0000 (UTC) Received: from mail-yk0-f174.google.com (mail-yk0-f174.google.com [209.85.160.174]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 633FD428DB for ; Fri, 21 Aug 2015 17:35:23 +0000 (UTC) Received: by ykbi184 with SMTP id i184so77307781ykb.2 for ; Fri, 21 Aug 2015 10:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=DyytcFJWknYWPIAMxTHt65NX3JsEKUwgYErMd40jenM=; b=ANwM/mTTxZu5lz/dqMOwHhYnr13IWy8K2508EFp6hcvYBaUmm2qaLexVxW326HCIPY Mu3rqQpCv+xY1BU1K5YIrCNAasylHg0A0YjcErLSjShNiqFwK/YXLx1aVUPQfqQG7iUL ybtYBdRwx4vBp44WCTGQ4RsHoZMHt2RFnUWun+Gh8NOc7aYwLit9AbB5b0mgDbrl8RTk OvDZXhJVlyIDM6N75N3VFx3pZdBpr+N2aCXBiVv2uEdT7RGg7Ixe1AaplQpm+UxKQdDX aetvycFMjOJhJAe5gIXXETKH7Q+qdoQTNA0xKzMzgBYoQDMvEpBxOcawSClGp5AGLk+C GldA== MIME-Version: 1.0 X-Received: by 10.170.194.200 with SMTP id l191mr12881437yke.84.1440178517718; Fri, 21 Aug 2015 10:35:17 -0700 (PDT) Received: by 10.37.215.211 with HTTP; Fri, 21 Aug 2015 10:35:17 -0700 (PDT) Date: Fri, 21 Aug 2015 10:35:17 -0700 Message-ID: Subject: Chaining MapReduce From: =?UTF-8?B?4pi8IFIgTmFpciAo4KSw4KS14KS/4KS24KSC4KSV4KSwIOCkqOCkvuCkr+CksCk=?= To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11391864f64576051dd5b009 --001a11391864f64576051dd5b009 Content-Type: text/plain; charset=UTF-8 All, I have three mappers, followed by a reducer. I executed the map reduce successfully. The reported output shows that number of mappers executed is 1 and number of reducers is also 1. Though number of reducers are correct, won't we be getting number of mappers as 3 , since I have three mapper classes connected by ChainMapper? O/P given below (snippet) :- Job Counters Launched map tasks=1 Launched reduce tasks=1 Data-local map tasks=1 Total time spent by all maps in occupied slots (ms)=8853 Total time spent by all reduces in occupied slots (ms)=9900 Total time spent by all map tasks (ms)=8853 Total time spent by all reduce tasks (ms)=9900 Total vcore-seconds taken by all map tasks=8853 Total vcore-seconds taken by all reduce tasks=9900 Total megabyte-seconds taken by all map tasks=9065472 Total megabyte-seconds taken by all reduce tasks=10137600 What I guess is, since the output is passing through Context, the internal connected mappers are not caught by job counter, am I correct ? Best, Ravion --001a11391864f64576051dd5b009 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
All,

I have three mappers, followed= by a reducer. I executed the map reduce successfully. The reported output = shows that number of mappers executed is 1 and number of reducers is also 1= . Though number of reducers are correct, won't we be getting number of = mappers as 3 , since I have three mapper classes connected by ChainMapper?<= br>
O/P given below (snippet) :-

Job Counters
=C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 Launched map tasks=3D1
=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 Launched reduce tasks=3D1
=C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 Data-local map tasks=3D1
=C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 Total time spent by all maps in occupied slots (ms)=3D8853
=C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 Total time spent by all reduces in occup= ied slots (ms)=3D9900
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 Total time s= pent by all map tasks (ms)=3D8853
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 = Total time spent by all reduce tasks (ms)=3D9900
=C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 Total vcore-seconds taken by all map tasks=3D8853
=C2=A0= =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 Total vcore-seconds taken by all reduce tas= ks=3D9900
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 Total megabyte-seconds t= aken by all map tasks=3D9065472
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 To= tal megabyte-seconds taken by all reduce tasks=3D10137600


=
What I guess is, since the output is passing through Context, the inte= rnal connected mappers are not caught by job counter, am I correct ?

Best, Ravion
--001a11391864f64576051dd5b009--