Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-5504

OrcOutputFormat honors compression properties only from within hive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.0, 0.12.0, 0.13.0
    • 0.13.0
    • HCatalog
    • None
    • Hide
      Allows OrcOutputFormat.createRecordWriter() to use its table property parameters (like "orc.compress") if specified in JobConf as well. This codepath is not called from Hive, but will be helpful to those that want to use OrcOutputFormat as a generic M/R OutputFormat.

      In addition, makes changes to HCatalog to look for certain Orc table properties, and if present, copies them out to JobConf before instantiating OrcOutputFormat, thus passing the properties back to it. This allows users of Orc from outside Hive to have Orc behave as the metadata dictates.
      Show
      Allows OrcOutputFormat.createRecordWriter() to use its table property parameters (like "orc.compress") if specified in JobConf as well. This codepath is not called from Hive, but will be helpful to those that want to use OrcOutputFormat as a generic M/R OutputFormat. In addition, makes changes to HCatalog to look for certain Orc table properties, and if present, copies them out to JobConf before instantiating OrcOutputFormat, thus passing the properties back to it. This allows users of Orc from outside Hive to have Orc behave as the metadata dictates.

    Description

      When we import data into a HCatalog table created with the following storage description

      .. stored as orc tblproperties ("orc.compress"="SNAPPY")
      the resultant orc file still uses the default zlib compression

      It looks like HCatOutputFormat is ignoring the tblproperties specified. show tblproperties shows that the table indeed has the properties properly saved.

      An insert/select into the table has the resulting orc file honor the tbl property.

      Attachments

        1. HIVE-5504.2.patch
          10 kB
          Sushanth Sowmyan
        2. HIVE-5504.patch
          10 kB
          Sushanth Sowmyan

        Issue Links

          Activity

            People

              sushanth Sushanth Sowmyan
              venkatnrangan Venkat Ranganathan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: