Single spark streaming job to read incoming events with dynamic schema
This post was updated on .
I am trying to create a spark structured streaming job which reads from a
Kafka topic and the events coming from that Kafka topic will have different
schemas (There is no standard schema for the incoming events).
How can I create a spark structured streaming to read the above events
without stopping the spark job for making any new schema changes ?
Also we may need to provide schema while using spark.readStream(). I thought
of reading a small subset of incoming data and derive the schema from it.
But, that might not work here as the incoming data is disparate and we may
have different schemas for each of the incoming events.