设为首页 收藏本站
查看: 468|回复: 0

[经验分享] Chapter 1. Meet Hadoop

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2016-12-8 09:53:42 | 显示全部楼层 |阅读模式
  1.      A zettabyte is 1021bytes, or equivalently one thousand exabytes, onemillion petabytes, or one billion terabytes.


2.      It has been saidthat “More data usually beats better algorithms,” which is to say that for someproblems (such as recommending movies or music based on past preferences),however fiendish your algorithms are, they can often be beaten simply by havingmore data (and a less sophisticated algorithm).
 
3.      While the storagecapacities of hard drives have increased massively over the years, accessspeeds—the rate at which data can be read from drives—have not kept up.
 
4.      The first problemof reading and writing data in parallel to or from multiple disks is hardwarefailure. The second problem is that most analysis tasks need to be able tocombine the data in some way; Various distributed systems allow data to becombined from multiple sources, but doing this correctly is notoriouslychallenging.
 
5.      Hadoop provides:a reliable shared storage and analysis system. The storage is provided by HDFSand analysis by MapReduce. There are other parts to Hadoop, but thesecapabilities are its kernel.
 
6.      MapReduce is abatch query processor, and the ability to run an adhoc query against your whole dataset and get the results in a reasonable timeis transformative.
 
7.      Seek time isimproving more slowly than transfer rate. Seeking is the process of moving thedisk’s head to a particular place on the disk to read or write data. Itcharacterizes the latency of a disk operation, whereas the transfer ratecorresponds to a disk’s bandwidth. If the data access pattern is dominated byseeks, it will take longer to read or write large portions of the dataset thanstreaming through it, which operates at the transfer rate. For updating a smallproportion of records in a database, a traditional B-Tree (which is limited bythe rate it can perform seeks) works well. For updating the majority of adatabase, a B-Tree is less efficient than MapReduce, which uses Sort/Merge torebuild the database.
 
8.      MapReduce can beseen as a complement to an RDBMS. MapReduce is a good fit for problems thatneed to analyze the whole dataset, in a batch fashion, particularly for ad hocanalysis. An RDBMS is good for point queries or updates, where the dataset hasbeen indexed to deliver low-latency retrieval and update times of a relativelysmall amount of data. MapReduce suits applications where the data is writtenonce, and read many times, whereas a relational database is good for datasetsthat are continually updated.
RDBMS compared to MapReduce
 

Traditional RDBMS

MapReduce

Data size

Gigabytes

Petabytes

Access

Interactive and batch

Batch

Updates

Read and write many times

Write once, read many times

Structure

Static schema

Dynamic schema

Integrity

High

Low

Scaling

Nonlinear

Linear

 
9.      Anotherdifference between MapReduce and an RDBMS is the amount of structure in thedatasets that they operate on. MapReduce works well on unstructured orsemi-structured data, since it is designed to interpret the data at processingtime. In other words, the input keys and values for MapReduce are not anintrinsic property of the data, but they are chosen by the person analyzing thedata.
 
10.  One of thecentral assumptions that MapReduce makes is that it is possible to perform(high-speed) streaming reads and writes.
 
11.  MapReduce is alinearly scalable programming model. The programmer writes two functions—a mapfunction and a reduce function—each of which defines a mapping from one set ofkey-value pairs to another. These functions are oblivious to the size of thedata or the cluster that they are operating on, so they can be used unchangedfor a small dataset and for a massive one.
 
12.  The approach inHPC is to distributethe work across a cluster of machines, which access a shared filesystem, hostedby a SAN. This works well for predominantly compute-intensive jobs, but becomesa problem when nodes need to access larger data volumes (hundreds of gigabytes,the point at which MapReduce really starts to shine), since the networkbandwidth is the bottleneck and compute nodes become idle.
 
13.  MPI(MessagePassing Interface) gives great control to the programmer, but requires that heor she explicitly handle the mechanics of the data flow, exposed via low-levelC routines and constructs, such as sockets, as well as the higher-levelalgorithm for the analysis. MapReduce operates only at the higher level: theprogrammer thinks in terms of functions of key and value pairs, and the dataflow is implicit.

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-311338-1-1.html 上篇帖子: Hadoop学习笔记(一)——RPC 下篇帖子: [笔记]hadoop mapred InputFormat分析
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表