Giter Site home page Giter Site logo

Comments (4)

felipemmelo avatar felipemmelo commented on June 28, 2024 1

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.

felipemmelo avatar felipemmelo commented on June 28, 2024

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.

mxolisiz avatar mxolisiz commented on June 28, 2024

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.

mxolisiz avatar mxolisiz commented on June 28, 2024

@felipemmelo Oh ok, Thanks a lot for the assistance. learnt a lot here.

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.