I have a question about, when a RDD
is stored in memory.
Lets say I have this code:
val dataset = originalDataset
.flatMap(data => modifyDatasetFormat(data, mappingsInMap))
.persist(StorageLevel.MEMORY_AND_DISK)
So far I have a RDD
which is stored in memory of each worker node.
Questions:
If I do another transformation or action to this RDD
, will this persistence stop exist and I should create another one or it doesn't have anything to do with it?
If I change partitions in this RDD
(e.x hash partitions) will this persistence stop exist and I should create another one or it doesn't have anything to do with it?
Thanks