Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9216

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3-alpha, 0.23.6, 3.0.0-alpha1
    • 2.0.3-alpha, 0.23.7
    • io
    • 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.

      Attachments

        1. HADOOP-9216.patch
          3 kB
          Tsuyoshi Ozawa

        Activity

          People

            ozawa Tsuyoshi Ozawa
            ozawa Tsuyoshi Ozawa
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: