I am going through a book, which to me has stated a contradictory statement. Quoting the book: "Spark’s RDDs are by default recomputed each time you run an action on them." But in the next few lines, it states: "After computing it the first time, Spark will store the RDD contents in memory and reuse them in future actions."
My question is, if RDDs are stored in memory, why is it recomputed each time an action is called on them?
In the first statement it says RDD is recomputed each time, and in the second statement it says, RDD is stored in memory to reuse them for future actions.