spark ssc.textFileStream is not streamining any files from directory

后端 未结 6 1525
醉酒成梦
醉酒成梦 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:45

    textFileStream can only monitor a folder when the files in the folder are being added or updated.

    If you just want to read files, you can rather use SparkContext.textFile.

提交回复
热议问题