... | ... | @@ -50,7 +50,7 @@ if you have used GitHub before, you are all set! Before downloading the |
|
|
software, you'll need to sign in and upload your ssh key. A handy tutorial on
|
|
|
how to generate and upload your ssh key is available from [GitHub][github-ssh].
|
|
|
|
|
|
```bash
|
|
|
```
|
|
|
$ git clone git@gitlab.cs.washington.edu:dwoos/452-labs.git 452-labs
|
|
|
$ cd 452-labs
|
|
|
$ ls
|
... | ... | @@ -94,7 +94,7 @@ The compiler produces two errors, because the implementation of the `Map` and |
|
|
Modify `Map` and `Reduce` so that `wc.go` reports the number of occurrences of
|
|
|
each word in alphabetical order.
|
|
|
|
|
|
```sh
|
|
|
```
|
|
|
$ go run wc.go master kjv12.txt sequential
|
|
|
Split kjv12.txt
|
|
|
DoMap: read split mrtmp.kjv12.txt-0 966954
|
... | ... | @@ -124,7 +124,7 @@ Merge: read mrtmp.kjv12.txt-res-2 |
|
|
|
|
|
The output will be in the file "mrtmp.kjv12.txt". Your implementation is correct
|
|
|
if the following command produces the following top 10 words:
|
|
|
```sh
|
|
|
```
|
|
|
$ sort -n -k2 mrtmp.kjv12.txt | tail -10
|
|
|
unto: 8940
|
|
|
he: 9666
|
... | ... | @@ -139,7 +139,7 @@ the: 62075 |
|
|
```
|
|
|
|
|
|
To make testing easy for you, run:
|
|
|
```sh
|
|
|
```
|
|
|
$ ./test-wc.sh
|
|
|
```
|
|
|
and it will report if your solution is correct or not.
|
... | ... | @@ -179,7 +179,7 @@ a TA. |
|
|
|
|
|
You can remove the output file and all intermediate files with:
|
|
|
|
|
|
```sh
|
|
|
```
|
|
|
$ rm mrtmp.*
|
|
|
```
|
|
|
|
... | ... | @@ -220,7 +220,7 @@ You should run your code using Go's unit test system. We supply you with a set |
|
|
of tests in `test_test.go`. You run unit tests in a package directory (e.g., the
|
|
|
mapreduce directory) as follows:
|
|
|
|
|
|
```sh
|
|
|
```
|
|
|
$ cd mapreduce
|
|
|
$ go test
|
|
|
```
|
... | ... | @@ -253,7 +253,7 @@ system. |
|
|
|
|
|
You will see some error messages that are safe to ignore. These will looks
|
|
|
something like this:
|
|
|
```sh
|
|
|
```
|
|
|
2016/01/04 11:44:52 method CleanupFiles has wrong number of ins: 1
|
|
|
2016/01/04 11:44:52 method CleanupRegistration has wrong number of ins: 1
|
|
|
2016/01/04 11:44:52 method KillWorkers has wrong number of ins: 1
|
... | ... | |