Skip to content

DigHuang/big-data-lab1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How To Run This Project

If you just clone it now

  1. Turn to the directory src/main
  2. Run the following command

Step1 Linux

# Build wc.go
go build -buildmode=plugin ../mrapps/wc.go

# Run the coordinator
go run mrcoordinator.go pg*.txt
# Run in race mode
go run -race mrcoordinator.go pg*.txt

# Run the workers
go run mrworker.go wc.so

# Check the result
cat mr-out-* | sort | more

If you have already run the project before

  1. Clear the intermediate files
  2. Run the command above

Step2 Linux

# Clear the intermediate files
rm -rf mr-* wc.so

If you want to meet the res to the professional version

Step3 Linux

sort -V -k1,1 -k2,2 mr-out* | grep . > mr-wc-all

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published