Git Product home page Git Product logo

Comments (4)

fxn avatar fxn commented on June 6, 2024

Solved.

The registry in this platform is not Confluent's. Turns out new subjects need an explicit creation step in this one.

from avrora.

Strech avatar Strech commented on June 6, 2024

@fxn Glad that issue resolved. Do anything that this library can improve emerge? I'm not quite sure that I understand about an explicit step. Technically the subject is registered every time you encode the payload

from avrora.

fxn avatar fxn commented on June 6, 2024

I don't have enough perspective to suggest an improvement.

The first time you encode, the library performs a POST to register the schema, and subsequent encodings use the returned ID. Using Confluent's registry, if the subject does not exist, it is created when you POST. This has worked flawlessly in development using the Docker image confluentinc/cp-schema-registry.

However, when I started deploying this project to company servers, that initial POST was failing with

{:error, %{"error_code" => 40401, "message" => "Subject not found"}}

Turns out, this platform is actually using https://github.com/hortonworks/registry, and this registry does not auto create subjects. If the subject is new, you need to manually create the subject first with a POST to

/api/v1/schemaregistry/schemas

that has a series of special attributes like schemaGroup.

Once the new subject is created, then Avrora's POSTs to register versions work just fine as usual.

from avrora.

Strech avatar Strech commented on June 6, 2024

@fxn Thanks for the insights, I've checked the registry you are using, what I can say – they have 2 different endpoints for new and existing schema manipulations: create schema and update schema.

This is an additional and a bit different behavior that I need to explore in the future. I have a plan to support out-of-band behavior and currently already have a few issues and ideas to implement, like:

  • Schema registration task
  • Read-only behavior for registry storage (out-of-band)

And seems it will be cool to implement support for a new registry (I guess)

from avrora.

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.