I have a reducer that creates a temporary sequence file.  I am generating
this file by calling SequenceFileOutputFormat.getPathForWorkFile() and
passing the result into SequenceFile.createWriter().  Now I also want to use
the same reducer code as a combiner.
SequenceFileOutputFormat.getPathForWorkFile()
won't work because a combiner does not have access to the job output
directory.

What is the right way to automatically generate a non-colliding temporary
sequence file that can be used by both a combiner and a reducer?

Reply via email to