What is accumulators and broadcast variables in spark?
Answer Posted / Ramesh Prasad
Accumulators in Spark are variables that can be updated by each task during a computation. They allow you to store a value that accumulates over the course of the application, but they do not persist across iterations. Broadcast variables, on the other hand, are read-only distributed objects used to broadcast large amounts of data to the workers.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers