// CHECKSTYLE: resume LineLengthCheck
HadoopUtils.setWorkOutputDir(taskAttemptContext);
JobConf jobConf = new JobConf(taskAttemptContext.getConfiguration());
int fileId = CREATED_FILES_COUNTER.incrementAndGet();
String name = FileOutputFormat.getUniqueName(jobConf, "part-" + fileId);
Reporter reporter = new ProgressReporter(taskAttemptContext);
org.apache.hadoop.mapred.RecordWriter<WritableComparable, Writable> baseWriter =
baseOutputFormat.getRecordWriter(null, jobConf, name, reporter);
LOG.info("getBaseRecordWriter: Created new {} with file {}", baseWriter, name);
return baseWriter;
}