This directory contains the Go implementation of the MapReduce framework. For detailed information about the project, please see the main README.
- Go 1.16 or later
- Make (optional, for using Makefile commands)
-
Build the main application:
go build -o mr_main src/main.go
-
Build the WordCount plugin:
go build -buildmode=plugin -o apps/wordcount.so apps/wordcount.go
-
Run workers:
./mr_main mrworker apps/wordcount.so & ./mr_main mrworker apps/wordcount.so -
Run coordinator:
./mr_main mrcoordinator files/pg-*
To create your own MapReduce task, implement the Map and Reduce functions in a new Go file, following the pattern in apps/wordcount.go.
go test ./...MIT License