仅显示前20行
我有一个流数据集。它从Kafka流读取并写入控制台。
val outputStream = inputStream.writeStream.format("console")
.option("truncate", value = false)
.option("checkpointLocation", "checkpoint")
outputStream.start()
spark.streams.awaitAnyTermination()
但是,当有多个记录时,我会在控制台上收到一条消息: 仅显示前20个行
,仅显示20个记录。有没有办法检索所有记录?
火花版本:3.1.2
I have a streaming dataset. It reads from Kafka stream and writes into console.
val outputStream = inputStream.writeStream.format("console")
.option("truncate", value = false)
.option("checkpointLocation", "checkpoint")
outputStream.start()
spark.streams.awaitAnyTermination()
However when there are more than one record, I get a message on console :only showing top 20 rows
And it shows only 20 records. Is there a way to retrieve all records ??
Spark version : 3.1.2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个选项
numrows
,例如:10000。There is an option
numRows
, for example: 10000.