hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Scherer" <Matthias.Sche...@1und1.de>
Subject AW: KeyValueTextInputFormat and Hadoop 0.20.1
Date Thu, 26 Nov 2009 16:13:26 GMT
Sorry, but I can't find it in the version control system for release 0.20.1: http://svn.apache.org/repos/asf/hadoop/common/tags/release-0.20.1/src/mapred/org/apache/hadoop/mapreduce/lib/input/

Du you have another distribution?

Regards,
Matthias
 

> -----Urspr√ľngliche Nachricht-----
> Von: Jeff Zhang [mailto:zjffdu@gmail.com] 
> Gesendet: Donnerstag, 26. November 2009 16:35
> An: common-user@hadoop.apache.org
> Betreff: Re: KeyValueTextInputFormat and Hadoop 0.20.1
> 
> 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.Scherer@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
> >
> 

Mime
View raw message