Hadoop Common
  1. Hadoop Common
  2. HADOOP-9216

CompressionCodecFactory#getCodecClasses should trim the result of parsing by Configuration.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3-alpha, 0.23.6, 3.0.0
    • Fix Version/s: 2.0.3-alpha, 0.23.7
    • Component/s: io
    • Labels:
      None

      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.

      1. HADOOP-9216.patch
        3 kB
        Tsuyoshi Ozawa

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Tsuyoshi Ozawa
            Reporter:
            Tsuyoshi Ozawa
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development