Applications of Map-Reduce.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Applications of Map-Reduce.ppt

Feature absence and tool incompatibility Transaction updates Changing data and maintaining data integrity Data mining and replication tools Database design and construction tools Map Reduce Inapplicability * * * * Worcester Polytechnic Institute Applications of Map-Reduce Team 3 CS 4513 – D08 Very popular example to explain how Map-Reduce works Demo program comes with Nutch (where Hadoop originated) * Distributed Grep For Unix guru: ??? grep -Eh regex inDir/* | sort | uniq -c | sort -nr - counts lines in all files in inDir that match regex and displays the counts in descending order ????????????? ???????????? ????????????????????????? - grep -Eh A|C in/* | sort | uniq -c | sort -nr - Analyzing web server access logs to find the top requested pages that match a given pattern Distributed Grep C B B C C A 3 C 1 A Result File 2 File 1 Map function in this case: ?- ? input is (file offset, line) ?- ? output is either: 1. an empty list [] (the line does not match) 2. a key-value pair [(line, 1)] (if it matches) Reduce function in this case: ?- input is (line, [1, 1, ...]) ?- output is (line, n) where n is the number of 1s in the list. Distributed Grep Map tasks: (0, C) - [(C, 1)] (2, B) - [] (4, B) - [] (6, C) - [(C, 1)] (0, C) - [(C, 1)] (2, A) - [(A, 1)] Distributed Grep C B B C C A 3 C 1 A Result File 2 File 1 Reduce tasks: (A, [1])?????? - (A, 1) (C, [1, 1, 1]) - (C, 3) Large-Scale PDF Generation The New York Times needed to generate PDF files for 11,000,000 articles (every article from 1851-1980) in the form of images scanned from the original paper Each article is composed of numerous TIFF images which are scaled and glued together Code for generating a PDF is relatively straightforward The Problem Technologies Used Amazon Simple Storage Service (S3) Scalable, inexpensive internet storage which can store and retrieve any amount of data at any time from anywhere on the web Asynchronous, decentralized system which aims to reduce scaling bottlen

文档评论(0)

wsh1288 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档