[ https://issues.apache.org/jira/browse/SPARK-3228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14110442#comment-14110442 ]
Apache Spark commented on SPARK-3228: ------------------------------------- User 'Leolh' has created a pull request for this issue: https://github.com/apache/spark/pull/2132 > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org