Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D3C410656 for ; Tue, 3 Dec 2013 16:26:46 +0000 (UTC) Received: (qmail 82708 invoked by uid 500); 3 Dec 2013 16:26:38 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 82634 invoked by uid 500); 3 Dec 2013 16:26:38 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 82614 invoked by uid 99); 3 Dec 2013 16:26:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2013 16:26:37 +0000 Date: Tue, 3 Dec 2013 16:26:37 +0000 (UTC) From: "bc Wong (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-1234) Avro MapReduce jobs silently ignore input data without '.avro' extension MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13837849#comment-13837849 ] bc Wong commented on AVRO-1234: ------------------------------- Thanks for the patch, Dave! Would you have time to add a flag for opt-in? (I know it's holidays season. So it's totally fine if you're busy. I'm happy to finish that part for you.) > Avro MapReduce jobs silently ignore input data without '.avro' extension > ------------------------------------------------------------------------ > > Key: AVRO-1234 > URL: https://issues.apache.org/jira/browse/AVRO-1234 > Project: Avro > Issue Type: Bug > Affects Versions: 1.7.3 > Reporter: Dave Beech > Assignee: Dave Beech > Fix For: 1.7.6 > > Attachments: AVRO-1234.patch > > > The AvroInputFormat class explicitly checks each input path for a '.avro' extension. > If only some of the input paths have the correct extension, the remainder are silently ignored and not included in the job. However, if none of the input paths have the extension, the job will continue and succeed even though no map tasks are allocated, and no work is done. > This only happens using the old mapred API. The new mapreduce API version will happily read files regardless of extension. > Is the check necessary? -- This message was sent by Atlassian JIRA (v6.1#6144)