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_r254983249
##########
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:
Yea, this is true the schema could be from s3 or other source. I put that
`schemaregistry` hostname as a placeholder which is misleading.
I like that idea with `avro.serde.type="confluent"`
That `avro.schema.literal` is from 2014 and from what I read from code it
has higher priority than `avro.schema.url`. Well, there is never enough
documentation tho :)
----------------------------------------------------------------
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