Pig II (11) (Tối ưu hóa và thực thi Pig II) (Tiếng Anh)
Slide bài giảng về tối ưu hóa và thực thi của Pig, giới thiệu kiến trúc và các kỹ thuật tối ưu như giảm quét, giảm số lượng MR job, giảm shuffle, xử lý skew, tối ưu bộ nhớ, và các mô hình thực thi cải tiến.
正在生成预览...
Pig Optimization and Execution Alan F. Gates @alanfgates © Hortonworks Inc. 2011 Page 1 Who Am I? Pig committer and PMC Member HCatalog committer and mentor Member of ASF and Incubator PMC Co-founder of Hortonworks Author of Programming Pig from O’Reilly Photo credit: Steven Guarnaccia, The Three Little Pigs Who Are You? 3 What Should We Optimize? Minimize scans – Hadoop is still often I/O bound Minimize total number of MR jobs Minimize shuffle size and number of shuffles Avoid spills to disk Reduce or remove skew For small jobs, minimize start-up time 4 Pig Deployment No server, all optimization and planning done on the launching machine Job executes on cluster Pig resides on user machine or gateway Hadoop Cluster User machine Pig Guts (i.e. Pig Architecture), p. 1 Logical Plan Pig Latin Load A = LOAD ‘myfile’ AS (x, y, z); B = GROUP A by x; C = FILTER B by group > 0; D = FOREACH C GENERATE group, COUNT(A); STORE D INTO ‘output’; Group AST Filter Foreach Semantic Checks Store 6 Pig Guts, p. 2 MapReduce Plan Logical Plan Load Load Group Filter Filter Foreach Map Filter Rearrange Group Rule based optimizations Reduce Store 7 Foreach Package Store Foreach Pig Guts, p. 3 MapReduce Plan Map Map Filter Filter Rearrange Rearrange Combine Foreach Physical optimizations Reduce Package Reduce Package Foreach Foreach 8 It would be really cool if… Map Map Reduce Reduce Map Map Reduce Reduce Map Reduce What’s the right join algorithm here? Even with statistics it would be hard to know. Need on the fly execution plan rewrites. 9 Memory Java + memory management = oil + water Java types inefficient memory users (~4x disk size) Very difficult to tell how much memory you are using Originally tried to monitor memory use via MXBeans: FAIL! Now estimate number of records we can hold in memory and spill when we exceed; allow user to tune guess 10 Reducing Spills to Disk Select Map size an
… 下载原始文件以阅读完整文档。
- 文档名称
- Pig II (11) (Tối ưu hóa và thực thi Pig II) (Tiếng Anh)
- 学校 / 课程
- Duke University · Big Data
- 作者(文档中)
- Alan F. Gates
- 内容
- Tài liệu này cung cấp cái nhìn sâu sắc về kiến trúc và các phương pháp tối ưu hóa hiệu suất cho Apache Pig, bao gồm giảm thiểu I/O, số lượng job MapReduce, và xử lý dữ liệu lệch. Nó cũng thảo luận về quản lý bộ nhớ, khởi động job nhanh hơn và các mô hình thực thi cải tiến.
- 目录
- Who Am I?
- Who Are You?
- What Should We Optimize?
- Pig Deployment
- Pig Guts (i.e. Pig Architecture), p. 1
- Pig Guts, p. 2
- Pig Guts, p. 3
- It would be really cool if…
- Memory
- Reducing Spills to Disk
- Skew
- Reducing your Reducers
- (De)serialization
- Faster Job Startup
- Improved Execution Models
- Code Generation
- Learn More
- Questions?
- 页数
- 19 页
- 上传者
- Giang Le
常见问题
此文档免费吗?
是的。“Pig II (11) (Tối ưu hóa và thực thi Pig II) (Tiếng Anh)”是免费的 — 只需登录并点击“下载”即可获取原始文件。
这份文档有多少页?
该文档共有 19 页,适用于课程 Big Data。您可以在下载前进行在线预览。
我可以在下载前预览吗?
是的。您可以通过在线阅读器直接在本页面预览此文档,然后再决定是否下载。

评论 (0)
暂无评论。快来抢沙发吧!