Comments (4)
For multiple topics with multiple schemas, you'll need multiple jobs, even if only using Spark Structured Streams directly.
However, if you're using TopicNameStrategy (as in here) for Schema Regsitry, you can reuse the configuration and only change the topic name, as the schema name will defined from the topic, as explained here.
from abris.
Hi @mxolisiz , if the topics have the same schema, it should work. You can separate the topics by using RETAIN_ORIGINAL_SCHEMA
as explained here
If you however want to read topics containing different schemas, then it should not work from a limitation on Spark Structured Streams, as the schema for the dataframes needs to be defined before the job is started.
from abris.
Hi @felipemmelo thanks for the response
"as the schema for the dataframes needs to be defined before the job is started" That makes sense thank you... I am reading from more than one topic which all have different schemas
Stupid question :) - does that mean if i want to use this library with my multiple topics & multiple schemas I'd probably have to read each topic to it's own separate dataframe and have separate schemaRegistryConfs
(if writing that type of code in a clean way is possible)
from abris.
@felipemmelo Oh ok, Thanks a lot for the assistance. learnt a lot here.
from abris.
Related Issues (20)
- 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
- Version 6.4.0 failing for Spark 3.5.0 HOT 2
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.