All,

For the first time I have tried to use the class ArrayWritable.  All goes
well enough until the Reducer tries to do a write.  Then, I get the
following exception:

java.lang.RuntimeException: java.lang.NoSuchMethodException:
org.apache.hadoop.io.ArrayWritable.<init>()
...

>From the reducer, the relevant code.

// Prepare the output.
IntWritable[] out = new IntWritable[5];
// populate output array.
ctx.write(key, new ArrayWritable(IntWritable.class, out));
// If I comment the above line out, the job runs without issue.

Can anyone see what I'm doing wrong?
-- 
Geoffry Roberts

Reply via email to