Is it possible to convert a streaming o.a.s.sql.Dataset
to DStream
? If so, how?
I know how to convert it to RDD, but it is in a streaming context.
Is it possible to convert a streaming o.a.s.sql.Dataset
to DStream
? If so, how?
I know how to convert it to RDD, but it is in a streaming context.
It is not possible. Structured Streaming and legacy Spark Streaming (DStreams
) use completely different semantics and are not compatible with each other so:
DStream
cannot be converted to Streaming Dataset
.Dataset
cannot be converted to DStream
.