// output is written in parallel into a directory or should always be written to a directory
if(!fs.isDistributedFS()) {
// File system is not distributed.
// We need to prepare the output path on each executing node.
if(!fs.initOutPathLocalFS(p, writeMode, true)) {
// output preparation failed! Cancel task.
throw new IOException("Output directory could not be created. Canceling task.");
}
}