码迷,mamicode.com
首页 > 其他好文 > 详细

2.1.4、SparkEnv中创建BroadcastManager

时间:2019-03-30 01:05:43      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:exec   syn   uri   called   park   cto   span   创建   nbsp   

在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.4、SparkEnv中创建BroadcastManager

标签:exec   syn   uri   called   park   cto   span   创建   nbsp   

原文地址:https://www.cnblogs.com/chengbao/p/10624951.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!