I came across two versions of Resilient meanining RDD ?
Understanding 1:- When RDD is created in memory, it also stores the algorithm in secondary storage how it created the RDD. So even if RDD is lost, it can be constructed later from algorithm. That's why it is called resilient/reliable. RDD just stores/backup the algorithm not the actual RDD data in secondary storage.
Understanding 2:- When RDD is created in memory, it backup th data on another node also. So even if RDD on one node is lost, it can be constructed later from data stored on another node.
Which one is correct ?