hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (HIVE-21218) KafkaSerDe doesn't support topics created via Confluent Avro serializer
Date Mon, 11 Feb 2019 08:39:00 GMT


ASF GitHub Bot logged work on HIVE-21218:

                Author: ASF GitHub Bot
            Created on: 11/Feb/19 08:38
            Start Date: 11/Feb/19 08:38
    Worklog Time Spent: 10m 
      Work Description: xbaran commented on pull request #526: HIVE-21218: KafkaSerDe doesn't
support topics created via Confluent

 File path: serde/src/java/org/apache/hadoop/hive/serde2/avro/
 @@ -88,6 +89,7 @@ public String getPropName(){
   @Deprecated public static final String SCHEMA_NAME = "";
   @Deprecated public static final String SCHEMA_DOC = "avro.schema.doc";
   @Deprecated public static final String AVRO_SERDE_SCHEMA = AvroTableProperties.AVRO_SERDE_SCHEMA.getPropName();
+  @Deprecated public static final String AVRO_SERDE_MAGIC_BIT = AvroTableProperties.AVRO_SERDE_MAGIC_BYTES.getPropName();
 Review comment:
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 196831)
    Time Spent: 1h 50m  (was: 1h 40m)

> KafkaSerDe doesn't support topics created via Confluent Avro serializer
> -----------------------------------------------------------------------
>                 Key: HIVE-21218
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: kafka integration, Serializers/Deserializers
>    Affects Versions: 3.1.1
>            Reporter: Milan Baran
>            Assignee: Milan Baran
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
> According to [Google groups|!topic/confluent-platform/JYhlXN0u9_A] the
Confluent avro serialzier uses propertiary format for kafka value - <magic_byte 0x00><4
bytes of schema ID><regular avro bytes for object that conforms to schema>. 
> This format does not cause any problem for Confluent kafka deserializer which respect
the format however for hive kafka handler its bit a problem to correctly deserialize kafka
value, because Hive uses custom deserializer from bytes to objects and ignores kafka consumer
ser/deser classes provided via table property.
> It would be nice to support Confluent format with magic byte.
> Also it would be great to support Schema registry as well.

This message was sent by Atlassian JIRA

View raw message