public void checkOutputSpecs(FileSystem ignored, BSPJob job)
throws FileAlreadyExistsException, InvalidJobConfException, IOException {
// Ensure that the output directory is set and not already there
Path outDir = getOutputPath(job);
if (outDir == null && job.getNumBspTask() != 0) {
throw new InvalidJobConfException("Output directory not set in JobConf.");
}
if (outDir != null) {
FileSystem fs = outDir.getFileSystem(job.getConfiguration());
// normalize the output directory
outDir = fs.makeQualified(outDir);