Member since
03-12-2017
2
Posts
1
Kudos Received
0
Solutions
03-16-2017
04:38 AM
2 Kudos
@Apoorva Teja Vanam : It doesn't look like there is a straight forward approach to this. Have you checked : http://stackoverflow.com/questions/37017366/how-can-i-make-spark1-6-saveastextfile-to-append-existing-file
... View more
03-23-2017
09:12 PM
You can check for empty patition using following code lines.dstream().foreachRDD(rdd => { if(!rdd.partitions.isEmpty)
rdd.saveAsTextFile(outputDir)
})
... View more