How to continuously monitor a directory by using Spark Structured Streaming

Viewed 8995

I want spark to continuously monitor a directory and read the CSV files by using spark.readStream as soon as the file appears in that directory.

Please don't include a solution of Spark Streaming. I am looking for a way to do it by using spark structured streaming.

2 Answers
Related