private OutputCommitter createOutputCommitter(
TaskAttemptContext context) throws IOException, InterruptedException {
assert context != null;
Set<OutputCommitter> components = new LinkedHashSet<OutputCommitter>();
if (isBridgeOutputEnabled(context)) {
OutputCommitter committer = bridgeOutputFormat.getOutputCommitter(context);
if (components.contains(committer) == false) {
components.add(committer);
}
}
if (isFileOutputEnabled(context)) {
OutputCommitter committer = dummyFileOutputFormat.getOutputCommitter(context);
if (components.contains(committer) == false) {
components.add(committer);
}
}
if (isTemporaryOutputEnabled(context)) {