Question
What does collect do?
Select an option. Your answer will be checked instantly.
Correct Answer: D. Returns all RDD elements to the driver
Explanation:
collect is safe only when the complete result fits in driver memory.
Large results can crash or overload the driver.
Leave a Reply