-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Binary Encode/Decoder #11
Comments
I will preface my comment with - "I AM NOT A JAVA DEVELOPER, AND I DON'T KNOW JAVA." I am a DBA that is dabbling in Data Engineering, but coding is my weakness. I ran into an issue with a Python producer that was out of my jurisdiction that was producing to a topic using Avro, but was not using Schema Registry. The serialization of the message value looked something like this:
I was running into an issue with the RegistrylessAvroConverter - it was complaining that the value of the messages was not a valid Avro file. So, I went looking and found this issue from @mhomaid1 and got some feedback from the folks at r/ApacheKafka. His solution worked, for the most part. Here is what mine ended up looking like:
I also had to have the correct imports:
I then had to compile while ignoring the test. I am guessing this was because I changed the .java file and the tests were no longer applicable to how the class was coded.
After that, my connector worked and was able to move data downstream. I am not happy about it, but I do appreciate the work of both @farmdawgnation and @mhomaid1 |
Hi Matt,
Thank you for this project.
I had to use
BinaryDecoder
to decode my messages but I didn't know how to tellDataFileReader
to use theBinaryDecoder
to decode my messages so I usedGenericDatumReader
directly, I'm assuming you are usingDataFileReader
in case the avro file contained more than one message(which isn't my case at least for now), is this something from the Connect framework ?Attached my code:
The text was updated successfully, but these errors were encountered: