GithubHelp home page GithubHelp logo

Comments (5)

cerveada avatar cerveada commented on May 26, 2024

When the schema is generated automatically, these values are used for schema name and namespace.

I guess Abris could provide some default value, so you doesn't have to provide those.

For now you can just provide those values in the configuration.

from abris.

tonyclyde avatar tonyclyde commented on May 26, 2024

That makes sense, thanks!

Then Im probably just not doing things right. Im trying to use the existing <topic>-key and <topic>-value schemas that are already in the registry for the given topic but cant seem to find the right configuration to do so. I tried setting SchemaManager.PARAM_SCHEMA_NAME_FOR_RECORD_STRATEGY to key and value respectively (which i think is the confluent default) but that gives me these errors:

java.security.InvalidParameterException: Schema could not be registered for topic '<topic>'. Make sure that the Schema Registry is available, the parameters are correct and the schemas ar compatible

Any guidance appreciated. Thanks.

Guess for now I probably just need to make sure that the schema Im publishing with really matches the one thats there....

from abris.

cerveada avatar cerveada commented on May 26, 2024

The idea was that when you write avro you also write the schema to registry and when you read avro you read the schema from there.

So to_confluent_avro will generate the schema and try to register it, the generated and the schema already in register are not compatible and that's the reason why it fails.

from abris.

cerveada avatar cerveada commented on May 26, 2024

I would try to load the schema first AvroSchemaUtils.loadForValue(schemaRegistryConf) and then call to_confluent_avro with the provided schema.

from abris.

tonyclyde avatar tonyclyde commented on May 26, 2024

Thanks for your help, this seems to mostly work but then Im back to being blocked by #58

to_confluent_avro(
  col("key"),
  AvroSchemaUtils.loadForKey(keyRegistryConfig).toString,
  keyRegistryConfig
)

For now Im just falling back on serializing and sending my messages manually via the KafkaProducer but will come back to this once thats resolved.

Thanks! (feel free to close this one)

from abris.

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.