spark ssc.textFileStream is not streamining any files from directory

后端 未结 6 1542
醉酒成梦
醉酒成梦 2020-12-03 08:13

I am trying to execute below code using eclipse (with maven conf) with 2 worker and each have 2 core or also tried with spark-submit.

public class StreamingW         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 08:32

    You have to take in count that Spark Streaming will only read the new files in the directory, no the updated ones (once they are in the directory) and also they all must have the same format.

    Source

提交回复
热议问题