cricket007 commented on a change in pull request #933: HIVE-21218: Adding 
support for Confluent Kafka Avro message format
URL: https://github.com/apache/hive/pull/933#discussion_r387996074
 
 

 ##########
 File path: kafka-handler/README.md
 ##########
 @@ -50,6 +50,9 @@ ALTER 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 5 bytes from beginning that represents magic byte + schema ID 
from registry.
+It can be done by setting `"avro.serde.type"="confluent"` or 
`"avro.serde.type"="skip"` with `"avro.serde.skip.bytes"="5"`. It's recommended 
to set an avro schema via 
`"avro.schema.url"="http://hostname/SimpleDocument.avsc"` or 
`"avro.schema.literal"="{"type" : "record","name" : "SimpleRecord","..."}`. If 
both properties are set then `avro.schema.literal` has higher priority.
 
 Review comment:
   ```suggestion
   It can be done by setting `"avro.serde.type"="confluent"` or 
`"avro.serde.type"="skip"` with `"avro.serde.skip.bytes"="5"`. It's recommended 
to set an Avro schema via 
`"avro.schema.url"="http://hostname/SimpleDocument.avsc"` or 
`"avro.schema.literal"="{"type" : "record","name" : "SimpleRecord","..."}`. If 
both properties are set then `avro.schema.literal` has higher priority.
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to