There's a KeyValueInputFormat under package org.apache.hadoop.mapreduce.lib.input which is for hadoop new API
Jeff Zhang On Thu, Nov 26, 2009 at 7:10 AM, Matthias Scherer <matthias.sche...@1und1.de > wrote: > Hi, > > I started my first experimental Hadoop project with Hadoop 0.20.1 an run > in the following problem: > > Job job = new Job(new Configuration(),"Myjob"); > job.setInputFormatClass(KeyValueTextInputFormat.class); > > The last line throws the following error: "The method > setInputFormatClass(Class<? extends InputFormat>) in the type Job is not > applicable for the arguments (Class<KeyValueTextInputFormat>)" > > 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 >