xbaran commented on a change in pull request #526: HIVE-21218: KafkaSerDe
doesn't support topics created via Confluent
URL: https://github.com/apache/hive/pull/526#discussion_r255412146
##########
File path: kafka-handler/README.md
##########
@@ -25,6 +25,10 @@ If you want to switch serializer/deserializer classes you
can use alter table.
```sql
ALTER TABLE kafka_table SET TBLPROPERTIES
("kafka.serde.class"="org.apache.hadoop.hive.serde2.avro.AvroSerDe");
```
+
+If you use Confluent Avro serialzier/deserializer with schema registry you may
want to remove 4 bytes from beginning that represents schema ID from registry.
+It can be done with settings `"avro.serde.magic.bytes"="true"`. It's
recommended to set
`"avro.schema.url"="http://schemaregistry/SimpleDocument.avsc"`
Review comment:
I've added 2 properties `avro.serde.type` and `avro.serde.skip.bytes` and if
type is set to confluent it skip first 5 bytes. These 5 bytes can be set to
different value with avro.serde.skip.bytes property.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services