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

[经验分享] Hadoop Sorts a Petabyte in 16.25 Hours and a Terab

[复制链接]

尚未签到

发表于 2016-12-13 09:12:59 | 显示全部楼层 |阅读模式
  We used Apache Hadoopto compete in Jim Gray's Sortbenchmark. Jim's Gray's sort benchmark consists of a set of manyrelated benchmarks, each with their own rules. All of the sortbenchmarks measure the time to sort different numbers of 100 byterecords. The first 10 bytes of each record is the key and the rest isthe value. The minute sortmust finish end to end in less than a minute. The Gray sortmust sort more than 100 terabytes and must run for at least an hour. The best times we observed were:
BytesNodesMapsReducesReplicationTime500,000,000,000140680002600159 seconds1,000,000,000,000146080002700162 seconds100,000,000,000,0003452190,00010,0002173 minutes1,000,000,000,000,000365880,00020,0002975 minutes  Within the rules for the 2009 Gray sort, our 500 GB sort set a newrecord for the minute sort and the 100 TB sort set a new record of0.578 TB/minute. The 1 PB sort ran after the 2009 deadline, butimproves the speed to 1.03 TB/minute. The 62 second terabyte sort wouldhave set a new record, but the terabyte benchmark that we won last yearhas been retired. (Clearly the minute sort and terabyte sort arerapidly converging, and thus it is not a loss.) One piece of trivia isthat only the petabyte dataset had any duplicate keys (40 of them).
  We ran our benchmarks on Yahoo's Hammer cluster. Hammer's hardwareis very similar to the hardware that we used in last year's terabytesort. The hardware and operating system details are:

  • approximately 3800 nodes (in such a large cluster, nodes are always down)
  • 2 quad core Xeons @ 2.5ghz per node
  • 4 SATA disks per node
  • 8G RAM per node (upgraded to 16GB before the petabyte sort)
  • 1 gigabit ethernet on each node
  • 40 nodes per rack
  • 8 gigabit ethernet uplinks from each rack to the core
  • Red Hat Enterprise Linux Server Release 5.1 (kernel 2.6.18)
  • Sun Java JDK (1.6.0_05-b13 and 1.6.0_13-b03) (32 and 64 bit)
  We hit a JVM bug that caused a core dump in 1.6.0_05-b13 on thelarger sorts (100TB and 1PB) and switched over to the later JVM, whichresolved the issue. For the larger sorts, we used 64 bit JVMs for theName Node and Job Tracker.
  Because the smaller sorts needed lower latency and faster network,we only used part of the cluster for those runs. In particular, insteadof our normal 5:1 over subscription between racks, we limited it to 16nodes in each rack for a 2:1 over subscription. The smaller runs canalso use output replication of 1, because they only take minutes to runand run on smaller clusters, the likelihood of a node failing is fairlylow. On the larger runs, failure is expected and thus replication of 2is required. HDFS protects against data loss during rack failure bywriting the second replica on a different rack and thus writing thesecond replica is relatively slow.
  Below are the timelines for the jobs counting from the jobsubmission at the Job Tracker. The diagrams show the number of tasksrunning at each point in time. While maps only have a single phase, thereduces have three: shuffle, merge, and reduce.The shuffle is the transfer of the data from the maps. Merge doesn'thappen in these benchmarks, because none of the reduces need multiplelevels of merges. Finally, the reduce phase is where the final mergeand writing to HDFS happens. I've also included a category named wastethat represents task attempts that were running, but ended up eitherfailing, or being killed (often as speculatively executed taskattempts).



  If you compare this years charts to last year's, you'll notice thattasks are launching much faster now. Last year we only launched onetask per heartbeat, so it took 40 seconds to get all of the taskslaunched. Now, Hadoop will fill up a Task Tracker in a singleheartbeat. Reducing that job launch overhead is very important forgetting runs under a minute.
  As with last year, we ran with significantly larger tasks than thedefaults for Hadoop. Even with the new more aggressive shuffle,minimizing the number of transfers (maps * reduces) is very importantto the performance of the job. Notice that in the petabyte sort, eachmap is processing 15 GB instead of the default 128 MB and each reduceis handling 50 GB. When we ran the petabyte with more typical values1.5 GB / map, it took 40 hours to finish. Therefore, to increasethroughput, it makes sense to consider increasing the default blocksize, which translates into the default map size, to at least up to 1GB.
  We used a branch of trunk with some modifications that will bepushed back into trunk. The primary ones are that we reimplementedshuffle to re-use connections, and we reduced latencies and madetimeouts configurable. More details including the changes we made toHadoop are available in our reporton the results.
  -- Owen O'Malley and Arun Murthy


Posted at May 11, 2009  3:00 PM

运维网声明 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.yunweiku.com/thread-313564-1-1.html 上篇帖子: 第七章:小朱笔记hadoop之源码分析-hdfs分析 第六节:SecondaryNameNode分析 下篇帖子: Hadoop状态页面的Browse the filesystem链接无效的问题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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

扫描微信二维码查看详情

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


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


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


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



合作伙伴: 青云cloud

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