Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 11558 invoked from network); 26 Nov 2009 15:10:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Nov 2009 15:10:55 -0000 Received: (qmail 20125 invoked by uid 500); 26 Nov 2009 15:10:52 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 20034 invoked by uid 500); 26 Nov 2009 15:10:52 -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 20024 invoked by uid 99); 26 Nov 2009 15:10:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2009 15:10:52 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Matthias.Scherer@1und1.de designates 217.72.192.159 as permitted sender) Received: from [217.72.192.159] (HELO msxmx04.webde.de) (217.72.192.159) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2009 15:10:50 +0000 Received: from WEBEXCHANGE02.webde.local (webexc02.webde.local [10.2.3.31]) by msxmx04.webde.de (Postfix) with ESMTP id 19A06182D5 for ; Thu, 26 Nov 2009 16:10:29 +0100 (CET) x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: KeyValueTextInputFormat and Hadoop 0.20.1 Date: Thu, 26 Nov 2009 16:10:27 +0100 Message-ID: <8EA6555451F4C44E8AD50B576801F28D037645F0@WEBEXCHANGE02.webde.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: KeyValueTextInputFormat and Hadoop 0.20.1 Thread-Index: AcpuqpZDY1e7gFAASbeezs+H+W0NXA== From: "Matthias Scherer" To: Hi, I started my first experimental Hadoop project with Hadoop 0.20.1 an run in the following problem: Job job =3D new Job(new Configuration(),"Myjob"); job.setInputFormatClass(KeyValueTextInputFormat.class); The last line throws the following error: "The method setInputFormatClass(Class) in the type Job is not applicable for the arguments (Class)" Job.setInputFormatClass expects a subclass of the new class org.apache.hadoop.mapreduce.InputFormat. But KeyValueTextInputFormat is only available as subclass of the deprecated org.apache.hadoop.mapred.FileInputFormat. Is there a way to use KeyValueTextInputFormat with the new classes Job and Configuration? Thanks, Matthias