Question: can we alter rdd in spark?
Answer: RDD (Resilient Distributed Dataset) is main logical data unit in Spark. An RDD is distributed collection of objects. ... RDDs are immutable (Read Only) data structure. You can't change original RDD, but you can always transform it into different RDD with all changes you want.