throws IOException, CascadingException {
String inputPath = manageTemporaryPath(path);
File inputFile = new File(inputPath);
if (inputFile.exists()) {
throw new CascadingException("Input file " + inputPath + " already exists.");
}
Tap inputTap = new Hfs(new SequenceFile(fields), inputPath, SinkMode.REPLACE);
TupleEntryCollector collector = inputTap.openForWrite(getJobConf());
return collector;
}