Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.3-alpha, 0.23.6, 3.0.0-alpha1
-
None
-
Reviewed
Description
CompressionCodecFactory#getCodecClasses doesn't trim its input.
This can confuse users of CompressionCodecFactory. For example, The setting as follows can cause error because of spaces in the values.
conf.set("io.compression.codecs",
" org.apache.hadoop.io.compress.GzipCodec , " +
" org.apache.hadoop.io.compress.DefaultCodec , " +
"org.apache.hadoop.io.compress.BZip2Codec ");
This ticket deals with this problem.