Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-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 60D46D5BB for ; Thu, 13 Sep 2012 03:31:16 +0000 (UTC) Received: (qmail 41009 invoked by uid 500); 13 Sep 2012 03:31:11 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 40782 invoked by uid 500); 13 Sep 2012 03:31:09 -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 40758 invoked by uid 99); 13 Sep 2012 03:31:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 03:31:08 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harsh@cloudera.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 03:31:03 +0000 Received: by obbtb18 with SMTP id tb18so4915479obb.35 for ; Wed, 12 Sep 2012 20:30:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=6QjDlgqV7N0wNQQKl/gJASN+7v0OYad4WcAcXc1HeqY=; b=o5LTrjbPxA4xUj1DDhLau6FbE1yt9pen0bJLDu9EpsdWSpQ4RsMfh4+LXBEVx43w2M BPlOZJoGGMhkyxkXqtut0goaEWQrADo6+A2j1b6Q2ZSWgo9FvpLqXTjOxJNhT+qxR72q tcRD3mjDZWmvyicxkky6+P3rbhhB4/ppfoLSw0gGDb6b/VqqbT0mH1DjwRYiO6iXgMFd AgY90ut1SdyZsYUIeCcKKIWoDmusao2/lgOSETccrpgY6sbGNhQqXM+H0SumRt0FicNk gjfEiAPRK6WqIlLMNCgnj4jVKk0mEFL8FD4ICZRKXLqCLrSWD62dtnGPc1C0qLJRHUwd 5oow== Received: by 10.60.22.162 with SMTP id e2mr486970oef.35.1347507042783; Wed, 12 Sep 2012 20:30:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.11.168 with HTTP; Wed, 12 Sep 2012 20:30:22 -0700 (PDT) In-Reply-To: <505111F9.6090608@filez.com> References: <505111F9.6090608@filez.com> From: Harsh J Date: Thu, 13 Sep 2012 09:00:22 +0530 Message-ID: Subject: Re: multipleoutputs does not like speculative execution in map-only job To: user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlO4m7qI6Dl51GsgJM3CG1B8XPk0hMMWvP3uEZRtz9RWhCVIEM/1gu3GVl0GCko/VZmwXQP X-Virus-Checked: Checked by ClamAV on apache.org Hey Radim, Does your job use the FileOutputCommitter? On Thu, Sep 13, 2012 at 4:21 AM, Radim Kolar wrote: > with speculative execution enabled Hadoop can run task attempt on more then > 1 node. If mapper is using multipleoutputs then second attempt (or sometimes > even all) fails to create output file because it is being created by another > attempt: > > attempt_1347286420691_0011_m_000000_0 > attempt_1347286420691_0011_m_000000_1 > .. > fails with > Error: org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException: failed > to create file /cznewgen/segments/20120907190053/parse_db/-m-00000 > > in my code i am using mos.write with 4 arguments. this problem is discussed > in javadoc for FileOutputFormat function getWorkOutputPath, its possible to > change MultipleOutputs to take advantage of this function? > > or its better to change FileOoutputFormat.getUniqueFile() to append last > digit in attempt id to filename to create unique names such as > /cznewgen/segments/20120907190053/parse_db/-m-00000_0 ? -- Harsh J