Are parallelized (and other loading operations) performed only during the execution of the Spark action or immediately after its discovery?
See def parallelize in spark code
Pay attention to various consequences, for example for .textFile (...): lazy evaluation means that, perhaps, saving some memory first, the text file should be read every time the action is performed, and that changing the text of the file will affect all actions after change.
source
share