Description
Since we changed it so that TableOutputFormat can handle Put and Delete it is necessary to set the output value class to Writable.
public static void initTableReducerJob(String table, Class<? extends TableReducer> reducer, Job job, Class partitioner) throws IOException { job.setOutputFormatClass(TableOutputFormat.class); if (reducer != null) job.setReducerClass(reducer); job.getConfiguration().set(TableOutputFormat.OUTPUT_TABLE, table); job.setOutputKeyClass(ImmutableBytesWritable.class); job.setOutputValueClass(Put.class); ....
The last line should be
job.setOutputValueClass(Writable.class);