Debug Hadoop (Kiểm thử và gỡ lỗi các chương trình MapReduce trong Hadoop)
- 页数
- 14
- 格式
- PPTX
- 大小
- 758 KB
- Trường
- University of Maryland
- 浏览量
- 0
- 评论
- 0
- 下载次数
- 0
Tài liệu hướng dẫn kiểm thử và gỡ lỗi các chương trình MapReduce trong Hadoop, bao gồm kiểm thử mapper, reducer, công cụ ToolRunner và giám sát job.
常见问题
此文档免费吗?
是的。“Debug Hadoop (Kiểm thử và gỡ lỗi các chương trình MapReduce trong Hadoop)”是免费的 — 只需登录并点击“下载”即可获取原始文件。
这份文档有多少页?
该文档共有 14 页,适用于课程 Khai phá dữ liệu。您可以在下载前进行在线预览。
我可以在下载前预览吗?
是的。您可以通过在线阅读器直接在本页面预览此文档,然后再决定是否下载。
- 文档名称
- Debug Hadoop (Kiểm thử và gỡ lỗi các chương trình MapReduce trong Hadoop)
- 学校 / 课程
- University of Maryland · Khai phá dữ liệu
- 内容
- Tài liệu hướng dẫn cách gỡ lỗi và kiểm thử các thành phần MapReduce trong Hadoop, bao gồm kiểm thử đơn vị cho mapper và reducer, sử dụng Mockito, và cách theo dõi, phân tích log của job.
- 目录
- 此文档没有清晰的目录。
- 页数
- 14 页
- 上传者
- Uni24h
正在生成预览...
描述
The map and reduce functions in MapReduce are easy to test in isolation, which is a consequence of their functional style. For known inputs, they produce known outputs. The following example is a program calculating the max temperature in Hadoop framework Unit test driver for mapper: Mockito is an open source testing framework for Java Then checks the output is the year and temperature reading It passes a weather record as input to the mapper mock() To create a mock Context, we call Mockito’s mock() method (a static import), passing the class of the type we want to mock. Map() Then we invoke the mapper’s map() method, which executes the code being tested. Verify() Here we verify that Context’s write() method was called with a Text object representing the year (1950) and an IntWritable representing the temperature (−1.1°C). Unit test driver for reducer: Source code for reducer Two parameter for the reducer to compare with A tool interface that supports handling of generic command-line options. A driver test the job By adding a driver class which can run the job in custom configuration, the job can be tested locally ToolRunner can be used to run classes implementing Tool interface Details of the Hadoop installation number of maps and reduces number of job submissions number of tasktracker nodes currently available cluster’s capacity number of map and reduce slots available across the cluster number of available slots per node number of tasktrackers that have been blacklisted by the jobtracker Sections for running, (successfully) completed, and failed jobs. Each of these sections has a table of jobs, with a row per job that shows the job’s ID, Links to the jobtracker’s logs, and the jobtracker’s history: information on all the jobs that the jobtracker has run. job owner and name how long the job has been running for “Num Tasks” shows the total number of map and reduce tasks for this job (a row for each) The job file is t
Debug Hadoop (Kiểm thử và gỡ lỗi các chương trình MapReduce trong Hadoop)
正在生成预览...
The map and reduce functions in MapReduce are easy to test in isolation, which is a consequence of their functional style. For known inputs, they produce known outputs. The following example is a program calculating the max temperature in Hadoop framework Unit test driver for mapper: Mockito is an open source testing framework for Java Then checks the output is the year and temperature reading It passes a weather record as input to the mapper mock() To create a mock Context, we call Mockito’s mock() method (a static import), passing the class of the type we want to mock. Map() Then we invoke the mapper’s map() method, which executes the code being tested. Verify() Here we verify that Context’s write() method was called with a Text object representing the year (1950) and an IntWritable representing the temperature (−1.1°C). Unit test driver for reducer: Source code for reducer Two parameter for the reducer to compare with A tool interface that supports handling of generic command-line options. A driver test the job By adding a driver class which can run the job in custom configuration, the job can be tested locally ToolRunner can be used to run classes implementing Tool interface Details of the Hadoop installation number of maps and reduces number of job submissions number of tasktracker nodes currently available cluster’s capacity number of map and reduce slots available across the cluster number of available slots per node number of tasktrackers that have been blacklisted by the jobtracker Sections for running, (successfully) completed, and failed jobs. Each of these sections has a table of jobs, with a row per job that shows the job’s ID, Links to the jobtracker’s logs, and the jobtracker’s history: information on all the jobs that the jobtracker has run. job owner and name how long the job has been running for “Num Tasks” shows the total number of map and reduce tasks for this job (a row for each) The job file is t
阅读全文
- 文档名称
- Debug Hadoop (Kiểm thử và gỡ lỗi các chương trình MapReduce trong Hadoop)
- 学校 / 课程
- University of Maryland · Khai phá dữ liệu
- 内容
- Tài liệu hướng dẫn cách gỡ lỗi và kiểm thử các thành phần MapReduce trong Hadoop, bao gồm kiểm thử đơn vị cho mapper và reducer, sử dụng Mockito, và cách theo dõi, phân tích log của job.
- 目录
- 此文档没有清晰的目录。
- 页数
- 14 页
- 上传者
- Uni24h
评论 (0)
暂无评论。快来抢沙发吧!
Frequent Item Sets Association Rules (Tập phổ biến và Luật kết hợp)
Relational Data Processing on MapReduce (Xử lý dữ liệu quan hệ trên MapReduce)
Entity Resolution in the Web of Data (Phân giải thực thể trong Web dữ liệu)
IoT Data Analytics (Phân tích dữ liệu trong Internet vạn vật)
Introduction to Scalable Data Analytics using Apache Spark (Phân tích dữ liệu quy mô lớn sử dụng Apache Spark)
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 5.Thuyết tương đối - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 4. Tán xạ ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 3.Phân cực ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
评论 (0)
暂无评论。快来抢沙发吧!