Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D831111527 for ; Thu, 24 Apr 2014 17:03:39 +0000 (UTC) Received: (qmail 84348 invoked by uid 500); 24 Apr 2014 17:03:23 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 84252 invoked by uid 500); 24 Apr 2014 17:03:21 -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 84225 invoked by uid 99); 24 Apr 2014 17:03:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 17:03:20 +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 vinodkv@hortonworks.com designates 209.85.214.182 as permitted sender) Received: from [209.85.214.182] (HELO mail-ob0-f182.google.com) (209.85.214.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 17:03:16 +0000 Received: by mail-ob0-f182.google.com with SMTP id uy5so3014266obc.27 for ; Thu, 24 Apr 2014 10:02:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=eIyRqJcLFagChWwPjZrQaWiBSOjl8poXLxh6cyylGe8=; b=RqKhpZEFBwr8gTpnFWyUXt8HCG4oWToEx+c1XNkwjTZ50MkuUK/4cJy4DEBxqjdwkI BhzNUedXwu2ZpMPAAavEI10e1CJwYFH4KsthX9Dhqpzt1In7el/hNHPyRi1KjmMzHM4P E4dnWt6o0vZHfCjK+Emlyw5REKkkmiGPj8GivtXht9bdYYzHc0mglUIuC+4YT1323hZq HSy4D8tS7if+43fa+5eoH/7VylLkMG3xlVtkRs8X1gY6Pz28BSGYr2OQxsb0/kB3xTuI dQLfy0ljxqyLXWYFXZnvcOY2tc8aEVhWjk9Uhy2eMFaqQJAayi5JNdvrcB3tcVdCMKMk /3nQ== X-Gm-Message-State: ALoCoQnagPYpLnxw/xRFyZGzG9rKjWfmrOFK8BJminuXEUjXMKMi5W6TSvPyP1FvOPBfetcYQZ1X/nxSrEmuNkCYWUxxy/odb9K5FESnDkHgRhWhGOjIFcc= MIME-Version: 1.0 X-Received: by 10.182.47.196 with SMTP id f4mr2435590obn.50.1398358975649; Thu, 24 Apr 2014 10:02:55 -0700 (PDT) Sender: vinodkv@hortonworks.com Received: by 10.60.246.170 with HTTP; Thu, 24 Apr 2014 10:02:55 -0700 (PDT) In-Reply-To: References: Date: Thu, 24 Apr 2014 10:02:55 -0700 X-Google-Sender-Auth: I56XSLFjvkcBG9Me1omcT8gkuYM Message-ID: Subject: Re: map execute twice From: Vinod Kumar Vavilapalli To: "mapreduce-user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=089e0158ad3803748304f7ccd252 X-Virus-Checked: Checked by ClamAV on apache.org --089e0158ad3803748304f7ccd252 Content-Type: text/plain; charset=US-ASCII This can happen when maps are marked as failed *after* they have successfully completed the map operation. One common reason when this can happen is reducers faiingl to fetch the map-outputs due to the node that ran the mapper going down, the machine freezing up etc. +Vinod Hortonworks Inc. http://hortonworks.com/ On Tue, Apr 22, 2014 at 7:28 PM, EdwardKing wrote: > I use Hadoop 2.2.0, I know hadoop will execute map first,when map is > 100%, it then execute reduce, after reduce is 100%,job will end. I execute > a job,the map is from 0% to 100% and map is from 0% to 100% again, why map > execute twice? Thanks. > > Hadoop job information for Stage-1: number of mappers: 1; number of > reducers: 1 > 2014-04-22 19:08:49,118 Stage-1 map = 0%, reduce = 0% > 2014-04-22 19:11:46,722 Stage-1 map = 100%, reduce = 0% > 2014-04-22 19:12:27,633 Stage-1 map = 0%, reduce = 0% > 2014-04-22 19:14:37,655 Stage-1 map = 15%, reduce = 0%, Cumulative CPU > 1.5 sec > 2014-04-22 19:15:39,248 Stage-1 map = 33%, reduce = 0%, Cumulative CPU > 3.34 sec > 2014-04-22 19:15:59,395 Stage-1 map = 100%, reduce = 0%, Cumulative CPU > 3.34 sec > 2014-04-22 19:16:40,988 Stage-1 map = 0%, reduce = 0% > 2014-04-22 19:18:56,845 Stage-1 map = 11%, reduce = 0%, Cumulative CPU > 2.57 sec > 2014-04-22 19:19:46,574 Stage-1 map = 15%, reduce = 0%, Cumulative CPU > 2.73 sec > 2014-04-22 19:20:30,718 Stage-1 map = 22%, reduce = 0%, Cumulative CPU > 2.82 sec > 2014-04-22 19:20:35,007 Stage-1 map = 41%, reduce = 0%, Cumulative CPU > 3.57 sec > 2014-04-22 19:20:55,280 Stage-1 map = 45%, reduce = 0%, Cumulative CPU > 3.76 sec > 2014-04-22 19:21:27,247 Stage-1 map = 100%, reduce = 0%, Cumulative CPU > 4.41 sec > 2014-04-22 19:22:28,362 Stage-1 map = 100%, reduce = 0%, Cumulative CPU > 4.41 sec > 2014-04-22 19:22:49,170 Stage-1 map = 100%, reduce = 67%, Cumulative CPU > 4.41 sec > 2014-04-22 19:22:52,995 Stage-1 map = 100%, reduce = 100%, Cumulative CPU > 5.69 sec > MapReduce Total cumulative CPU time: 5 seconds 690 msec > Ended Job = job_1398218615130_0001 > > > > --------------------------------------------------------------------------------------------------- > Confidentiality Notice: The information contained in this e-mail and any > accompanying attachment(s) > is intended only for the use of the intended recipient and may be > confidential and/or privileged of > Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader > of this communication is > not the intended recipient, unauthorized use, forwarding, printing, > storing, disclosure or copying > is strictly prohibited, and may be unlawful.If you have received this > communication in error,please > immediately notify the sender by return e-mail, and delete the original > message and all copies from > your system. Thank you. > > --------------------------------------------------------------------------------------------------- > -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You. --089e0158ad3803748304f7ccd252 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
This can happen when maps are marked as failed *after* the= y have successfully completed the map operation. One common reason when thi= s can happen is reducers faiingl to fetch the map-outputs due to the node t= hat ran the mapper going down, the machine freezing up etc.

+VinodHortonworks Inc.
http://hortonworks.com/


On Tue, Apr 22, 2014 at 7:28 PM, EdwardK= ing <zhangsc@neusoft.com> wrote:
I use Hadoop 2.2.0, I know hadoop will execute ma= p=20 first,when map is 100%, it=A0then execute reduce,=A0after=A0reduce is=20 100%,job will end.=A0I execute a job,the map is from 0% to 100% and map is= =20 from=A00% to 100% again, why map execute twice?=A0 Thanks.
=A0
Hadoop job information for Stage-1: number of mappers: 1; number of= =20 reducers: 1
2014-04-22 19:08:49,118 Stage-1 map =3D 0%,=A0 reduce =3D=20 0%
2014-04-22 19:11:46,722 Stage-1 map =3D 100%,=A0 reduce =3D=20 0%
2014-04-22 19:12:27,633 Stage-1 map =3D 0%,=A0 reduce =3D 0%
2014-= 04-22=20 19:14:37,655 Stage-1 map =3D 15%,=A0 reduce =3D 0%, Cumulative CPU 1.5=20 sec
2014-04-22 19:15:39,248 Stage-1 map =3D 33%,=A0 reduce =3D 0%, Cumul= ative=20 CPU 3.34 sec
2014-04-22 19:15:59,395 Stage-1 map =3D 100%,=A0 reduce =3D= 0%,=20 Cumulative CPU 3.34 sec
2014-04-22 19:16:40,988 Stage-1 map =3D 0%,=A0= =20 reduce =3D 0%
2014-04-22 19:18:56,845 Stage-1 map =3D 11%,=A0 reduce =3D= 0%,=20 Cumulative CPU 2.57 sec
2014-04-22 19:19:46,574 Stage-1 map =3D 15%,=A0= =20 reduce =3D 0%, Cumulative CPU 2.73 sec
2014-04-22 19:20:30,718 Stage-1 m= ap =3D=20 22%,=A0 reduce =3D 0%, Cumulative CPU 2.82 sec
2014-04-22 19:20:35,007= =20 Stage-1 map =3D 41%,=A0 reduce =3D 0%, Cumulative CPU 3.57 sec
2014-04-2= 2=20 19:20:55,280 Stage-1 map =3D 45%,=A0 reduce =3D 0%, Cumulative CPU 3.76=20 sec
2014-04-22 19:21:27,247 Stage-1 map =3D 100%,=A0 reduce =3D 0%, Cumu= lative=20 CPU 4.41 sec
2014-04-22 19:22:28,362 Stage-1 map =3D 100%,=A0 reduce =3D= 0%,=20 Cumulative CPU 4.41 sec
2014-04-22 19:22:49,170 Stage-1 map =3D 100%,=A0= =20 reduce =3D 67%, Cumulative CPU 4.41 sec
2014-04-22 19:22:52,995 Stage-1 = map =3D=20 100%,=A0 reduce =3D 100%, Cumulative CPU 5.69 sec
MapReduce Total cumula= tive=20 CPU time: 5 seconds 690 msec
Ended Job =3D job_1398218615130_0001
=A0

------------------------------= ---------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any ac= companying attachment(s)
is intended only for the use of the intended recipient and may be confident= ial and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader = of this communication is
not the intended recipient, unauthorized use, forwarding, printing,=A0 stor= ing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this commu= nication in error,please
immediately notify the sender by return e-mail, and delete the original mes= sage and all copies from
your system. Thank you.
---------------------------------------------------------------------------= ------------------------



CONFIDENTIALITY NOTICE
NOTICE: This message is = intended for the use of the individual or entity to which it is addressed a= nd may contain information that is confidential, privileged and exempt from= disclosure under applicable law. If the reader of this message is not the = intended recipient, you are hereby notified that any printing, copying, dis= semination, distribution, disclosure or forwarding of this communication is= strictly prohibited. If you have received this communication in error, ple= ase contact the sender immediately and delete it from your system. Thank Yo= u. --089e0158ad3803748304f7ccd252--