Hello all,

I'm new to Hadoop. I'm trying to write a small hadoop map/reduce
program that instead of reading/writing the primitive
LongWritable,IntWritable, etc. classes I'm using a custom object that
I wrote that implements the Writable interface. I'm still using a
LongWritable for the keys, but using my CustomWritable for the values.
My input is still a LongWritable,Text because I'm parsing a raw log
file. However, the output of the map is LongWritable,CustomWritable
and the input to reduce is LongWritable,CustomWritable, and the output
from reduce is LongWritable,CustomWritable.

I'm noticing that the map part processes fine, however when it gets to
reduce it just hangs at 0%. I'm not seeing any useful output in the
logs either. Here's my job configuration:

      conf.setJobName("test");
      conf.setOutputKeyClass(LongWritable.class);
      conf.setOutputValueClass(CustomWritable.class);
      conf.setMapperClass(MapClass.class);
      conf.setCombinerClass(Reduce.class);
      conf.setReducerClass(Reduce.class);
      FileInputFormat.setInputPaths(conf, remainingArguments.get(0));
      FileOutputFormat.setOutputPath(conf, new Path(remainingArguments.get(1)));

Am I missing something here? Do I need to specify the conf.OutputFormat?

Thanks,
Ryan

Reply via email to