elephant-bird icon indicating copy to clipboard operation
elephant-bird copied to clipboard

Writables need instantiation similar to InputFormats

Open dvryaboy opened this issue 14 years ago • 0 comments

With Raghu's refactoring, we can set the inputFormat and outputFormat as follows:

job.setInputFormatClass(
  LzoProtobufB64LineInputFormat.getInputFormatClass(MyProtobufClass.class, conf)
);

We need to do the same for Writables, as this: job.setOutputValueClass(ThriftWritable.class); doesn't work.

dvryaboy avatar Jan 07 '11 00:01 dvryaboy