spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vasiliy <>
Subject Re: can fileStream() or textFileStream() remember state?
Date Thu, 11 Sep 2014 08:42:06 GMT
When you get a stream from sc.fileStream() spark will process only files with
file timestamp > then current timestamp so all data from HDFS should not be
processed  again. You may have a another problem - spark will not process
files that moved to your HDFS folder between your application restarts. To
avoid this you should use the checkpoints as discribed here :

akso wrote
> When streaming from HDFS through eihter sc.fileStream() or
> sc.textFileStream(), how can state info be saved so that it won't process
> duplicate data.
> When app is stop and restart, all data from HDFS is processed again.

View this message in context:
Sent from the Apache Spark User List mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message