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 8FF6F10925 for ; Tue, 25 Feb 2014 05:58:41 +0000 (UTC) Received: (qmail 48036 invoked by uid 500); 25 Feb 2014 05:58:33 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 47307 invoked by uid 500); 25 Feb 2014 05:58:18 -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 47299 invoked by uid 99); 25 Feb 2014 05:58:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 05:58:15 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sugandha.n87@gmail.com designates 209.85.217.182 as permitted sender) Received: from [209.85.217.182] (HELO mail-lb0-f182.google.com) (209.85.217.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 05:58:10 +0000 Received: by mail-lb0-f182.google.com with SMTP id n15so658451lbi.13 for ; Mon, 24 Feb 2014 21:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=JR0RHLdUMp9wp6TnArH6kcUYhCcSLVfpbDrpENQ9xwY=; b=gjMY89c9Dpp+2ZLshqo7KblwYK2hLpcFuddYgmGU/5tdqjINY+vdmC0tHBPtSYJyGN f04LXmqdm9ByiXBH1bmvqdlHY1UKb4Ok2LUgKRRTvUEgO/v4vDdrGrfNrq9XWyDsJeWc d4BA0YfAsYM1XIvzeAwRZEjS5/MFFXWOOFZJ5bUSj2sDIGtdvHBg0tGoP1jDcueOwhaC edO8J6fhBV/bdVyHUhYUSfeYDm+8p7PJTVYDorieupB5ReTvbxWBv/jEPrNuvKdHEypa BASq0j3kh0ilyMXzGmNsBadtaFVm3dezh7v2sEY2bSetV8XgZAB51DUA8iLrUnRmQYs7 K4nA== X-Received: by 10.152.28.7 with SMTP id x7mr40955lag.57.1393307868911; Mon, 24 Feb 2014 21:57:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.150.34 with HTTP; Mon, 24 Feb 2014 21:57:08 -0800 (PST) From: Sugandha Naolekar Date: Tue, 25 Feb 2014 11:27:08 +0530 Message-ID: Subject: Mappers vs. Map tasks To: "core-user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=089e0160bf7096dd4904f334c444 X-Virus-Checked: Checked by ClamAV on apache.org --089e0160bf7096dd4904f334c444 Content-Type: text/plain; charset=ISO-8859-1 Hello, As per the various articles I went through till date, the File(s) are split in chunks/blocks. On the same note, would like to ask few things: 1. No. of mappers are decided as: Total_File_Size/Max. Block Size. Thus, if the file is smaller than the block size, only one mapper will be invoked. Right? 2. If yes, it means, the map() will be called only once. Right? In this case, if there are two datanodes with a replication factor as 1: only one datanode(mapper machine) will perform the task. Right? 3. The map() function is called by all the datanodes/slaves right? If the no. of mappers are more than the no. of slaves, what happens? -- Thanks & Regards, Sugandha Naolekar --089e0160bf7096dd4904f334c444 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

As per the various a= rticles I went through till date, the File(s) are split in chunks/blocks. O= n the same note, would like to ask few things:

  1. No. of mappers are decided as: Total_File_Size/Max. Block Size.= Thus, if the file is smaller than the block size, only one mapper will be = invoked. Right?
  2. If yes, it means, the map() will be called only onc= e. Right? In this case, if there are two datanodes with a replication facto= r as 1: only one datanode(mapper machine) will perform the task. Right?
  3. The map() function is called by all the datanodes/slaves right? If the = no. of mappers are more than the no. of slaves, what happens?
=
--
Thanks &=A0Regards,
Sugandha Naole= kar



--089e0160bf7096dd4904f334c444--