Not able to write Data in Parquet File using Spark Structured Streaming

后端 未结 2 1508
不思量自难忘°
不思量自难忘° 2021-02-06 15:14

I have a Spark Structured Streaming:

val df = spark
      .readStream
      .format(\"kafka\")
      .option(\"kafka.bootstrap.servers\", \"localhost:9092\")
            


        
2条回答
  •  轮回少年
    2021-02-06 15:28

    I had a similar problem but for different reasons, posting here in case someone has the same issue. When writing your output stream to file in append mode with watermarking, structured streaming has an interesting behavior where it won't actually write any data until a time bucket is older than the watermark time. If you're testing structured streaming and have an hour long water mark, you won't see any output for at least an hour.

提交回复
热议问题