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 C0B1C7284 for ; Mon, 1 Aug 2011 14:18:32 +0000 (UTC) Received: (qmail 79199 invoked by uid 500); 1 Aug 2011 14:18:32 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 79129 invoked by uid 500); 1 Aug 2011 14:18:32 -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 79093 invoked by uid 99); 1 Aug 2011 14:18:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2011 14:18:31 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,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; Mon, 01 Aug 2011 14:18:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C253597C01 for ; Mon, 1 Aug 2011 14:18:09 +0000 (UTC) Date: Mon, 1 Aug 2011 14:18:09 +0000 (UTC) From: "Robert Joseph Evans (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1045710831.22894.1312208289792.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 [ https://issues.apache.org/jira/browse/MAPREDUCE-2324?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 13073550#comment-13073550 ]=20 Robert Joseph Evans commented on MAPREDUCE-2324: ------------------------------------------------ I did initially look at trying to fix reduce.input.limit. Currently it is = something that someone has to manually guess what the value should be. Wha= t is more this value is likely to need to change as the cluster fills up wi= th data, and as data is deleted off of the cluster. If it is wrong then ei= ther too many jobs fail that would have succeeded or some jobs, probably a = very small number, will starve and never finish. =20 To fix it Hadoop would have to automatically set reduce.input.limit dynamic= ally and the only way I can think of to do that would be to gather statisti= cs about all the nodes in the cluster and try to predict how likely this pa= rticular reduce will ever find the space it needs on a node. I believe tha= t we can compute the mean and X% confidence interval for disk space on the = cluster without too much difficulty but I have my doubts that this will app= ly to a small cluster. From what I read anything under 40 samples tends to= be suspect, so it might not work for a cluster under 40 nodes. Also I am = not sure how the statistics would apply to this particular situation. Woul= d we want to compute this based off of a recent history of cluster of just = a snapshot of its current state? If there is history how far back would we = want to go, and how would we handle some nodes heart-beating in more regula= rly then others. I am not a statistician and I could not find one to look = over my work, so instead I decided to take a bit more of a brute force app= roach that I know would work. If you know a statistician that could provide a robust solution to this pro= blem or at least tell me what if anything I am doing wrong then I am very h= appy to implement it. > 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 > Fix For: 0.20.205.0 > > Attachments: MR-2324-security-v1.txt, MR-2324-security-v2.txt, MR= -2324-security-v3.patch, MR-2324-secutiry-just-log-v1.patch > > > 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