Re: Types and SequenceFiles

2013-07-25 Thread qwerty
Harsh J harsh@... writes: 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

Re: Types and SequenceFiles

2013-07-25 Thread Harsh J
There is a solution discussed in the mail you've quoted. Did you do that? Share your code snippets please? On Fri, Jul 26, 2013 at 5:07 AM, qwerty ninadpha...@gmail.com wrote: Harsh J harsh@... writes: Ah, sorry I didn't read the exact problem. Yes that static call you make to addInputPath

Re: Types and SequenceFiles

2013-05-31 Thread 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.

Re: Types and SequenceFiles

2013-05-31 Thread Harsh J
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

Types and SequenceFiles

2013-05-30 Thread Jens Scheidtmann
Dear list, I have created a sequence file like this: seqWriter = SequenceFile.createWriter(fs, getConf(), new Path(hdfsPath), IntWritable.class, BytesWritable.class, SequenceFile.CompressionType.NONE); seqWriter.append(new IntWritable(index++), new BytesWritable(buf)); (with buf a byte

Re: Types and SequenceFiles

2013-05-30 Thread Harsh J
Hi Jens, Please read this old thread at http://search-hadoop.com/m/WHvZDCfVsD which covers the issue, the solution and more. On Fri, May 31, 2013 at 1:39 AM, Jens Scheidtmann jens.scheidtm...@gmail.com wrote: Dear list, I have created a sequence file like this: seqWriter =