2.1.4SparkEnv中创建BroadcastManager
Posted chengbao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2.1.4SparkEnv中创建BroadcastManager相关的知识,希望对你有一定的参考价值。
在SparkEnv中创建BroadcastManager,
// 此处只是声明, 只有调用initialize, 才会生效
val broadcastManager = new BroadcastManager(isDriver, conf, securityManager)
initialize()
// Called by SparkContext or Executor before using Broadcast private def initialize() { synchronized { if (!initialized) { broadcastFactory = new TorrentBroadcastFactory broadcastFactory.initialize(isDriver, conf, securityManager) initialized = true } } }
以上是关于2.1.4SparkEnv中创建BroadcastManager的主要内容,如果未能解决你的问题,请参考以下文章
BlockManagerMaster对BlockManager的管理