Hadoop Common
  1. Hadoop Common
  2. HADOOP-6996

Allow CodecFactory to return a codec object given a codec' class name

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: io
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      CodecFactory specify the list of codec that are supported by Hadoop. However, it returns a codec only by a file's name. I would like to make getCodec method to alternatively take a codec's class name.

      This is required by HDFS-1435, where
      1. it allows an HDFS admin to configure which codec to use to save an image.
      2. It stores the codec class name in its on-disk image instead of a file's suffix.

      When saving and reading an image, I'd like to get an codec from CodecFactory by its class name.

        Issue Links

          Activity

          Hairong Kuang created issue -
          Hairong Kuang made changes -
          Field Original Value New Value
          Attachment getCodecByClassName.patch [ 12456881 ]
          Hairong Kuang made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Hairong Kuang made changes -
          Link This issue blocks HDFS-1435 [ HDFS-1435 ]
          Hairong Kuang made changes -
          Attachment getCodecByClassName1.patch [ 12456898 ]
          Hairong Kuang made changes -
          Attachment getCodecByClassName1.patch [ 12456898 ]
          Hairong Kuang made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Konstantin Shvachko made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Hairong Kuang
              Reporter:
              Hairong Kuang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development