首页 > 其他 > 详细

作业提交过程分析(源码)

时间:2016-09-25 17:09:49      阅读:345      评论:0      收藏:0      [点我收藏+]

  技术分享

sc.textFile("README.md").flatMap(line => line.split(" ")).map(word => (word,1)).reduceByKey(_ + _).collect

sc.textFile("README.md").flatMap(line => line.split(" ")).map(word => (word,1)).reduceByKey((a,b) => a + b).collect

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

 技术分享

技术分享

 

 

技术分享

 技术分享

技术分享

 技术分享

 

 技术分享

 技术分享

技术分享

技术分享

技术分享

技术分享

 

 

 

 技术分享

技术分享

技术分享

技术分享

技术分享

 

 

 

 

总结:

技术分享

第一个stage :

           HadoopRDD  ->   MapPartitionRDD  ->   MapPartitionsRDD  ->  MapPartitionsRDD  ->  MapPartitionsRDD

 

技术分享

第二个stage :   

    Stage shuffledRDD   ->  MapPartitionsRDD

 

 

 技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

 技术分享

技术分享

 

 技术分享

 

作业提交过程分析(源码)

原文:http://www.cnblogs.com/zlslch/p/5906198.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!