I have a Hadoop job that creates a temporary sequence file at a path it gets
from FileOutputFormat.getPathForWorkFile(). On successful completion of the
job, I'd like to delete the file, but I can't figure out how.

Is there an HDFS temporary file API with automatic cleanup?  In failing that
is there a way I can programmatically delete the file when I'm done with it?

These seem like basic questions, but I haven't been able to find the answers
in the O'Reilly book or online.

Reply via email to