You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Leo (JIRA)" <ji...@apache.org> on 2014/08/26 08:54:58 UTC

[jira] [Created] (SPARK-3228) When DStream save RDD to hdfs , don't create directory and empty file if there are no data received from source in the batch duration .

Leo created SPARK-3228:
--------------------------

             Summary: When DStream save RDD to hdfs , don't create directory and empty file if there are no data received from source in the batch duration .
                 Key: SPARK-3228
                 URL: https://issues.apache.org/jira/browse/SPARK-3228
             Project: Spark
          Issue Type: Improvement
          Components: Streaming
            Reporter: Leo


When I use DStream to save files to hdfs, it will create a directory and a empty file named "_SUCCESS" for each job which made in the batch duration.
But if there are no data from source for a long time , and the duration is very short(e.g. 10s), it will create so many directory and empty files in hdfs.
I don't think it is necessary. So I want to modify class DStream's method saveAsObjectFiles and saveAsTextFiles , it creates directory and files just when the RDD's partitions size > 0 .



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org