GithubHelp home page GithubHelp logo

Comments (5)

cddr avatar cddr commented on August 28, 2024

The included confluent serde currently expects to find a local copy of the schema on the classpath when serializing a message but not when deserializing the message. This behavior is inherited from upstream Serializer.

If it can't find one, that might be why it is throwing an error (admittedly not the most informative). In earlier versions, it would have thrown an error at resolution time but this PR relaxed that a bit so that consumers are not required to provide one.

Try putting those avro files on the resource-path (i.e. assuming a standard lein project layout, in the files resources/avro_key.json and resources/avro_value.json).

from jackdaw.

lurodrigo avatar lurodrigo commented on August 28, 2024

Thank you for your reply! Actually the schema files are already under the resources dir. When they're not, the friendlier exception "Execution error (ExceptionInfo) at jackdaw.serdes.resolver/load-schema (resolver.clj:18).
Could not find schema key_schema.json" is thrown

from jackdaw.

lurodrigo avatar lurodrigo commented on August 28, 2024

Updated OP, using confluent platform for better reproducibility.

from jackdaw.

cddr avatar cddr commented on August 28, 2024

Ah ok sorry. Our confluent serde expects keys in the message and value maps to be keyword, hyphenated versions of the corresponding avro fields.

There is #126 which seeks to provide the option to not mangle the names in this way.

from jackdaw.

lurodrigo avatar lurodrigo commented on August 28, 2024

Thank you! Using keywords will do it for now until the option not to mangle names gets released. I tried here and it worked with local Confluent Platform install. I had some problems with Confluent Cloud, but I'll open another issue.

from jackdaw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.