To get an empty RDD, I did this: I have an rdd with one element. I created another rdd using filter so that the second rdd does not contain anything. I achieved what I wanted but I want to know whether there is an efficient way to achieve this. This is a very crude way of creating an empty RDD. Is there another way to do this?
Thank you On Fri, Nov 14, 2014 at 3:39 PM, Deep Pradhan <pradhandeep1...@gmail.com> wrote: > How to create an empty RDD in Spark? > > Thank You >