google云计算培训教案分析.pptVIP

  • 3
  • 0
  • 约6.74千字
  • 约 42页
  • 2016-11-14 发布于湖北
  • 举报
* 单词计数 体现M/R算法 Hello World Bye World Hello China Bye China Hello Si-tech Bye Si-tech 输入数据: MapReduce Hello :3 Bye :3 China :2 World :2 Si-tech:2 Map(Key,Value) { for( each world ‘world’ in value) collect(‘world’,1); } Reduce(Key,Value[ ]) { int count = 0; for(each w in value) count ++; collect(Key,count); } 1) * Hello World Bye World Hello China Bye China Hello Si-tech Bye Si-tech 2) 分割 分割 分割 Hello World Bye World Hello China Bye China Hello Si-tech Bye Si-tech KEY VALUE KEY VALUE KEY VALUE 3) Hello World Bye World Hello China Bye China Hello Si-tech Bye Si-t

文档评论(0)

1亿VIP精品文档

相关文档