Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> Re: Types and SequenceFiles

Copy link to this message
Re: Types and SequenceFiles
Ah, sorry I didn't read the exact problem.

Yes that static call you make to addInputPath goes all the way up to
(inheritance!) FileInputFormat.addInputPath, which just adds input
paths and doesn't automatically imprint itself as the input format
class at the same time.

On Fri, May 31, 2013 at 9:35 PM, Jens Scheidtmann
> Dear Harsh,
> thanks for your answer. Your post talks about the intermediate and final
> result types.
> These are already configured in my job as:
>         job.setOutputKeyClass(IntWritable.class);
>         job.setOutputValueClass(IntWritable.class);
> My problem was input key and value types, though.
> Your post let me look in the right direction. I added
>         job.setInputFormatClass(SequenceFileInputFormat.class);
> which did the trick.I thought this would be done by the
>      SequenceFileAsBinaryInputFormat.addInputPath(jobConf, new
> Path(args[i]));
> Best regards,
> Jens

Harsh J