7 | | #!sh |
8 | | $ mkdir hw1_input |
9 | | $ echo "I like NCU Course." > hw1_input/input1 |
10 | | $ echo "I like ncu Course, and we enjoy this course." > hw1_input/input2 |
11 | | $ hadoop fs -put hw1_input hw1_input |
12 | | $ echo "\." >pattern.txt && echo "\," >> pattern.txt |
13 | | $ hadoop fs -put pattern.txt . |
14 | | $ hadoop jar WordCount -Dwordcount.case.sensitive=false hw1_input hw1_out -skip pattern.txt |
15 | | $ hadoop fs -cat hw1_out/part-00000 |
| 7 | ~$ mkdir hw1_input |
| 8 | ~$ echo "I like NTU Course." > hw1_input/input1 |
| 9 | ~$ echo "I like ntu Course, and we enjoy this course." > hw1_input/input2 |
| 10 | ~$ hadoop fs -put hw1_input hw1_input |
| 11 | ~$ echo "\." > pattern.txt && echo "\," >> pattern.txt |
| 12 | ~$ hadoop fs -put pattern.txt . |
| 13 | ~$ hadoop jar WordCount -Dwordcount.case.sensitive=false hw1_input hw1_out -skip pattern.txt |
| 14 | ~$ hadoop fs -cat hw1_out/part-00000 |