【发布时间】:2020-03-28 15:37:05
【问题描述】:
我正在使用结构化流式传输,并尝试将结果发送到名为“results”的 kafka 主题中。
我收到以下错误:
'Append output mode not supported when there are streaming aggregations on streaming DataFrames/DataSets without watermark;;
谁能帮忙?
query1 = prediction.writeStream.format("kafka")\
.option("topic", "results")\
.option("kafka.bootstrap.servers", "localhost:9092")\
.option("checkpointLocation", "checkpoint")\
.start()
query1.awaitTermination()
预测模式是:
root
|-- prediction: double (nullable = false)
|-- count: long (nullable = false)
我错过了什么吗?
【问题讨论】:
标签: apache-kafka spark-structured-streaming