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

Hive metatool should take table_param_key to allow for changes to avro serde's schema url key

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: Metastore
    • Labels:
      None

      Description

      HIVE-3443 added support to change the serdeParams from 'metatool updateLocation' command.

      However, in avro it is possible to specify the schema via the tableParams:

      CREATE  TABLE `testavro`(
        `test` string COMMENT 'from deserializer')
      ROW FORMAT SERDE 
        'org.apache.hadoop.hive.serde2.avro.AvroSerDe' 
      STORED AS INPUTFORMAT 
        'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat' 
      OUTPUTFORMAT 
        'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat'
      TBLPROPERTIES (
        'avro.schema.url'='hdfs://namenode:8020/tmp/test.avsc', 
        'kite.compression.type'='snappy', 
        'transient_lastDdlTime'='1427996456')
      

      Hence for those tables the 'metatool updateLocation' will not help.

      This is necessary in case like upgrade the namenode to HA where the absolute paths have changed.

        Attachments

        1. HIVE-10324.1.patch
          12 kB
          Ferdinand Xu
        2. HIVE-10324.patch
          7 kB
          Ferdinand Xu
        3. HIVE-10324.patch.WIP
          3 kB
          Ferdinand Xu

          Issue Links

            Activity

              People

              • Assignee:
                Ferd Ferdinand Xu
                Reporter:
                szehon Szehon Ho
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: