AnsweredAssumed Answered

Hadoop new API - Set OutputFormat

Question asked by razvan on Jul 23, 2012
Latest reply on Jul 26, 2012 by gera
I'm trying to set the OutputFormat of my job to MapFileOutputFormat using:

    jobConf.setOutputFormat(MapFileOutputFormat.class);

I get this error: mapred.output.format.class is incompatible with new reduce API mode

I suppose I should use the  `setOutputFormatClass()` of the new Job class but the problem is that when I try to do this:

    job.setOutputFormatClass(MapFileOutputFormat.class);

it expects me to use this class: `org.apache.hadoop.mapreduce.lib.output.MapFileOutputFormat`. In hadoop 1.0.X there is no such class. It only exists in earlier versions (e.g 0.x)

How can I solve this problem ?

Thank you!

Outcomes