Comments (5)
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.
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.
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.
I would try to load the schema first AvroSchemaUtils.loadForValue(schemaRegistryConf)
and then call to_confluent_avro
with the provided schema.
from abris.
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)
- ABRiS Version 3.2.2 with Spark 3.2.1 Throws Error HOT 2
- from_avro converts `\uFFFD` to a question mark HOT 1
- schema registry being called with http instead of https HOT 2
- Improve code-coverage & add GH check action HOT 1
- Fix JaCoCo CI for PRs from forked repos HOT 1
- update madrapps/jacoco-report
- Detect different schema versions in batch HOT 5
- Revert pull_request action back HOT 3
- TopicNameStrategy issue HOT 1
- Split GitHub actions for tests and test coverage
- Multiple schemas in one topic example HOT 1
- Spark 3.4 Support HOT 13
- malformed records to topic HOT 2
- foreach batch download by schem id HOT 3
- Container exited with a non-zero exit code 137 | Out of memory HOT 5
- Issues running inside Scala notebook on databricks HOT 1
- Fix tests for Spark 3.5.0
- Fix NoSuchMethodException in Spark 3.5.x
- get key from avro message HOT 3
- Compatibility with Spark 3.5 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abris.