--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/86f86c0d-3fea-43a1-afe5-260874519569%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Ewen:
Thanks for your email.
According to: ( I think you wrote this thread as well )
https://groups.google.com/forum/#!topic/confluent-platform/A7B6uSnJa5k
There are 4 bytes of extra information in Avro messages sent from Confluent, indicating the schema ID. So before I pass my avro message to “serializer.to_json()” method, I sliced off the first 4 bytes. However, it didn’t work neither with the same error. I tried to slice off the first 5 bytes as well but no luck.
The reason I’m hesitant to get the schema every time from schema registry once a message comes in is because of performance concerns.
I have a couple questions: do you know if there were an example to parse Avro message sent from Confluent using python? For the header in avro message that contains schema ID, how many bytes does it take (I tried 1, 2, 3, 4, 5); Is there a documentation page? And do we have to use the schema ID every time when a message comes in, or is there a way to get a schema once then use if for all subsequent messages?
I’ve also posted my question here: http://stackoverflow.com/questions/35712601/avro-io-avrotypeexception-the-datum-avro-data-is-not-an-example-of-the-schema
If you’d like to see my code I’ve put them there.
Thanks a lot!
Howard
--
You received this message because you are subscribed to a topic in the Google Groups "Confluent Platform" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/confluent-platform/Dc4oRJKBfDM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
confluent-platf...@googlegroups.com.
To post to this group, send email to
confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/CAE1jLMNKgCp%2BUowR%3DG%2B-HOyWUGfip_xug9Hm4iLnDTAj%2ByeD2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Hi Ewen:
Thanks for your email.
According to: ( I think you wrote this thread as well )
https://groups.google.com/forum/#!topic/confluent-platform/A7B6uSnJa5k
There are 4 bytes of extra information in Avro messages sent from Confluent, indicating the schema ID.
So before I pass my avro message to “serializer.to_json()” method, I sliced off the first 4 bytes.
However, it didn’t work neither with the same error. I tried to slice off the first 5 bytes as well but no luck.
The reason I’m hesitant to get the schema every time from schema registry once a message comes in is because of performance concerns.
I have a couple questions: do you know if there were an example to parse Avro message sent from Confluent using python? For the header in avro message that contains schema ID, how many bytes does it take (I tried 1, 2, 3, 4, 5);
Is there a documentation page? And do we have to use the schema ID every time when a message comes in, or is there a way to get a schema once then use if for all subsequent messages?
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/dfdadb852ac945d69bb42e49c38923af%40PRODNJ-EXCH01.MIO.local.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/CAE1jLMPDexu14jVs3mn%3DPbGNaSy18KGOSDNEfkS61cW62r%2B%3DXw%40mail.gmail.com.