Answer Posted / Dheeraj Kumar Singh
To clear the Spark cache, you can call the unpersist() or stop() method on the RDD or DataFrame. For example:ntval rdd = sc.textFile("file.txt")ntrdd.cache() // cache the RDDntrdd.unpersist() // clear the cache
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers