MapReduce/README.md~

30 lines
485 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

修改的文件包括/mr下的三个文件
- `coordinator.go` 用于协调worker的工作
- `worker.go` 通过RPC向coordinator请求任务执行Map或者Reduce任务
- `rpc.go` 定义了RPC的接口
使用方法:
运行
```shell
cd main
go run mrcoordinator.go pg-*.txt
```
然后再另一个窗口运行
```shell
cd main
go run mrworker.go wc.so
```
wc.so是用户编写生成的动态库用于执行Map和Reduce任务
测试程序
```shell
cd main
sh test-mr.sh
```