What is Broadcast Variables?
-
-
Explain Broadcast Variables. what are the advantages of Broadcast Variables? Where should we use them ?
-
Broadcast variables are variables that are shared throughout the cluster. Broadcast variables need to be able to slot in memory on one machine. which means that they mustn’t be something super massive, sort of a massive table or large vector. Secondly, broadcast variables area cannot be changed, which means that they can’t be modified. If you want to change or modify, accumulators are needed.
The properties of Broadcast Variable in Apache Spark are:
- Immutable
- Distributed to the cluster
- Fit in memory
- You must be logged in to reply to this topic.