I'm using structured streaming and I'm trying to send my result into a kafka topic, named "results".
I get the following error:
'Append output mode not supported when there are streaming aggregations on streaming DataFrames/DataSets without watermark;;
Can anyone help?
query1 = prediction.writeStream.format("kafka")\
.option("topic", "results")\
.option("kafka.bootstrap.servers", "localhost:9092")\
.option("checkpointLocation", "checkpoint")\
.start()
query1.awaitTermination()
prediction schema is:
root
|-- prediction: double (nullable = false)
|-- count: long (nullable = false)
Am I missing something?