This part allows to run do map reduce program distributed through multiple machines. In our solution we use an AWS S3 bucket as our distributed file system, and the coordinator and the workers should each run on separate AWS EC2 instances, where all instances have read-write access to the bucket.
cd distributable_systems_lab2/6.5840/src/main/
cd distributable_systems_lab2_part2/6.5840/src/main/
go build -buildmode=plugin ../mrapps/wc.go (Bygg wc)
rm mr-out* go run -race mrcoordinator.go pg-*.txt
go run mrworker.go wc.so
1: go build -race -buildmode=plugin -gcflags="all=-N -l" ../mrapps/wc.go
2: go run -race mrcoordinator.go pg-*.txt
3: go run -race -gcflags="all=-N -l" mrworker.go wc.so
go build -buildmode=plugin -gcflags="all=-N -l" ../mrapps/wc.go
go run -gcflags="all=-N -l" mrworker.go wc.so
bash test-mr.sh
run go clearBucket.go