Apache Spark 面试题与答案
Question: What is the Broadcast variable in Spark and when is it used?Answer: A Broadcast variable is a read-only variable cached on each worker node. It is used to efficiently distribute large read-only data structures, such as lookup tables, to all tasks in a Spark job.Example:
|
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗? 是 否
用户评价最有帮助的内容:
- What is the purpose of the Spark SQL module?
- Explain the difference between narrow and wide transformations in Spark.