Class<? extends CompressionCodec> codecClass = getOutputCompressorClass(ctx, GzipCodec.class);
codec = (CompressionCodec) ReflectionUtils.newInstance(codecClass, ctx.getConfiguration());
extension = codec.getDefaultExtension();
}
RecordWriter<Text, Text> recordWriter = new AegisthusRecordWriter(ctx, codec, extension, tempDir);
return recordWriter;
}