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 A96AC11845 for ; Fri, 12 Sep 2014 03:05:41 +0000 (UTC) Received: (qmail 49834 invoked by uid 500); 12 Sep 2014 03:05:35 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 49715 invoked by uid 500); 12 Sep 2014 03:05:35 -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 49567 invoked by uid 99); 12 Sep 2014 03:05:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2014 03:05:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fancyerii@gmail.com designates 209.85.217.181 as permitted sender) Received: from [209.85.217.181] (HELO mail-lb0-f181.google.com) (209.85.217.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2014 03:05:08 +0000 Received: by mail-lb0-f181.google.com with SMTP id z11so121973lbi.26 for ; Thu, 11 Sep 2014 20:05:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=5HKidyNv0c0NEZaRg1D6kC4FPBj1HY8ljfs3boMV8ug=; b=bfnvU7hBTqQJDtdRPZeHAwuZcK3YFKdTqF5d3xG7bmkOsFx3ONyRC7xpgwIVAYAUcE Hu022IqpLN2T8vFGoqfp8G0SmlpD4l221JtkPEYO0Pp49g5/EPX3JYGEpokAfxNO2AT7 +9pr7PQaVlXkBGVCTF1sg0S7Jc4oveI5FgsUZYo7gs1bHqbUcTQKMCYyOawUEAIwprQj 34o75jc9GQ0guOv8UrAO10ZiBrr2+Qsw62RTgdBeeQt4EdFqzb94+/w0PkAc6JhTh0lx vTkhnDlV3X23czdpsR96Uo9FKZ+sDCoKpAmgmHig8gJriKJNL+z7iECXn3XAwMiMlVKy co0A== MIME-Version: 1.0 X-Received: by 10.152.87.97 with SMTP id w1mr5570759laz.92.1410491107680; Thu, 11 Sep 2014 20:05:07 -0700 (PDT) Received: by 10.112.214.202 with HTTP; Thu, 11 Sep 2014 20:05:07 -0700 (PDT) Date: Fri, 12 Sep 2014 11:05:07 +0800 Message-ID: Subject: MultipleTextOutputFormat in new api of 1.2.1? From: Li Li To: user@hadoop.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org I want to output different key ranges to different directory. As of old api, there is a MultipleTextOutputFormat. I just need rewrite generateFileNameForKeyValue. But I can't find it in new api. There is a MultipleOutputs. But it's not that good because it need predefine keys by MultipleOutputs.addNamedOutput But before I run it, I don't know how many keys.