LOG.warn("Config property "
+ FlumeConfiguration.COLLECTOR_DFS_COMPRESS_GZIP
+ " is deprecated, please use "
+ FlumeConfiguration.COLLECTOR_DFS_COMPRESS_CODEC
+ " set to GzipCodec instead");
CompressionCodec gzipC = new GzipCodec();
Compressor gzCmp = gzipC.createCompressor();
dstPath = new Path(path + gzipC.getDefaultExtension());
hdfs = dstPath.getFileSystem(conf);
writer = hdfs.create(dstPath);
writer = gzipC.createOutputStream(writer, gzCmp);
LOG.info("Creating HDFS gzip compressed file: " + dstPath.toString());
return;
}
String codecName = conf.getCollectorDfsCompressCodec();