##Part 1 Query Distributed Log Files
cd cs425_grep_project
- Need to run server on all vms with
go run src/grep/server.go
- run client on any server to perform grep (or other shell command) with
go run src/grep/client.go
command to run (eg. grep a my.log) - All logfiles are stored as
~/my.log
Note:
1) Output will be saved in output.txt on the vm running client
2) The filename/filepath need to be pre-given by the client
##Part 2 Unit Test
- Generate log files at every machine:
go run src/test/generateUnitTest.go
You need to enter your netID here - Check whether our program works:
go test -v src/test/logQuerier_test.go src/test/logQuerier.go
If it says "PASS", then the program works.
Note:
You may store your ssh pub key in ~/.ssh/authorized_keys
in each VM to avoid repeating entering passward
##Contributor
This project is contributed by Junkai Cheng and Tianyi Tang.