Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93A957E04 for ; Thu, 14 Jul 2011 21:17:42 +0000 (UTC) Received: (qmail 58725 invoked by uid 500); 14 Jul 2011 21:17:41 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 58145 invoked by uid 500); 14 Jul 2011 21:17:40 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 58136 invoked by uid 99); 14 Jul 2011 21:17:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 21:17:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 21:17:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7FEE658F3D for ; Thu, 14 Jul 2011 21:17:16 +0000 (UTC) Date: Thu, 14 Jul 2011 21:17:16 +0000 (UTC) From: "Robert Joseph Evans (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <331247775.15146.1310678236520.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <371656456.15331.1297706997543.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-2324) Job should fail if a reduce task can't be scheduled anywhere MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-2324?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 13065540#comment-13065540 ]=20 Robert Joseph Evans commented on MAPREDUCE-2324: ------------------------------------------------ Looking back I realize that I probably have not answered Todd's question sa= tisfactorily. Yes there are out of band heartbeats, and in fact not every = TT heartbeat will make it all the way through to this piece code, because t= he node may have no slots available by the time it gets to this Job. The i= ntention was not to verify that the job has been tried on every TT before g= iving up. The idea was to do a reasonable effort in trying to schedule the= job before giving up. I suspect that the amount of free disk space on a n= ode may very quite a bit between heartbeats, just because jobs are using di= sk space that then go away, HDFS is storing a file that is deleted, or seve= ral new blocks are added, so even if we give every node a chance at this jo= b before giving up there is still a possibility that it will succeed later = on. We cannot predict the future, but we do need to put an upper bound on = how long we try to do something, otherwise there will always be corner case= s where we can get starvation. It may also make since to use some statistical heuristics in MR-279 to try = and give up sooner rather then later if someone is asking for something tha= t is really outside of the norm. But that is just an optimization. > Job should fail if a reduce task can't be scheduled anywhere > ------------------------------------------------------------ > > Key: MAPREDUCE-2324 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2324 > Project: Hadoop Map/Reduce > Issue Type: Bug > Affects Versions: 0.20.2, 0.20.205.0 > Reporter: Todd Lipcon > Assignee: Robert Joseph Evans > Attachments: MR-2324-security-v1.txt > > > If there's a reduce task that needs more disk space than is available on = any mapred.local.dir in the cluster, that task will stay pending forever. F= or example, we produced this in a QA cluster by accidentally running teraso= rt with one reducer - since no mapred.local.dir had 1T free, the job remain= ed in pending state for several days. The reason for the "stuck" task wasn'= t clear from a user perspective until we looked at the JT logs. > Probably better to just fail the job if a reduce task goes through all TT= s and finds that there isn't enough space. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira