Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0564B9659 for ; Fri, 21 Oct 2011 07:44:41 +0000 (UTC) Received: (qmail 17169 invoked by uid 500); 21 Oct 2011 07:44:39 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 16448 invoked by uid 500); 21 Oct 2011 07:44:29 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 16435 invoked by uid 99); 21 Oct 2011 07:44:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2011 07:44:28 +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 (athena.apache.org: domain of harsh@cloudera.com designates 209.85.210.50 as permitted sender) Received: from [209.85.210.50] (HELO mail-pz0-f50.google.com) (209.85.210.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2011 07:44:23 +0000 Received: by pzk34 with SMTP id 34so9343595pzk.9 for ; Fri, 21 Oct 2011 00:44:03 -0700 (PDT) Received: by 10.68.74.4 with SMTP id p4mr26039535pbv.47.1319183043114; Fri, 21 Oct 2011 00:44:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.140.9 with HTTP; Fri, 21 Oct 2011 00:43:43 -0700 (PDT) In-Reply-To: <000501cc8fc3$0ee030b0$2ca09210$@at> References: <000501cc8fc3$0ee030b0$2ca09210$@at> From: Harsh J Date: Fri, 21 Oct 2011 13:13:43 +0530 Message-ID: Subject: Re: InputFormat Problem To: common-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hey Simon, You're mixing the new mapreduce.* API with the stable mapred.* API in your implementation. I believe this could be due to a silly mistake surrounding importing classes in an IDE. i.e. You've implemented a org.apache.hadoop.mapred.RecordReader and are trying to use that in a org.apache.hadoop.mapreduce.InputFormat derivative, which will not work. Try changing your InputFormat to import org.apache.hadoop.mapred.InputFormat or vice versa (for your RecordReader). On Fri, Oct 21, 2011 at 12:58 PM, Simon Klausner wrote: > Hi, > > > > i'm trying to define my own InputFormat and RecordReader, however I'm > getting a type mismatch error in the createRecordReader method of the > InputFormat class. > > > > Here is the inputformat: > > http://codepad.org/wdr2NqBe > > > > here is the recordreader: > > =A0 http://codepad.org/9cmY6BjS > > > > i get the error at the inputformat class line 20: return new > PDFLinkRecordReader(); > > > > error: type mismatch: cannot convert PDFLinkRecordReader to > RecordReader. > > How can I fix this problem? I checked the following tutorial: > > http://developer.yahoo.com/hadoop/tutorial/module5.html > > I don't see my mistake. > > > > Best regards > > --=20 Harsh J