`
JerryLead
  • 浏览: 76412 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

Hadoop-0.20.2 Child.java bug

阅读更多

 

} finally {
      RPC.stopProxy(umbilical);
      MetricsContext metricsContext = MetricsUtil.getContext("mapred"); //此处的“mapred”应该为“jvm”
      metricsContext.close();
      // Shutting down log4j of the child-vm... 
      // This assumes that on return from Task.run() 
      // there is no more logging done.
      LogManager.shutdown();
    }

如果不更改的话,在finally中会新启动一个Updater线程,并很快被干掉( metricsContext.close();),而JvmMetrics的Updater线程会等到finally执行结束才会被终止(跟随child进程一块终止),这个bug在0.20.203中不存在了,因为代码已经变了

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics