close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": libgmp.so.10: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Apr 11, 2016, 5:46:44 PM (10 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v2
|
v3
|
|
| 6 | 6 | {{{ |
| 7 | 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 . |
| 8 | 14 | $ hadoop jar WordCount -Dwordcount.case.sensitive=false hw1_input hw1_out -skip pattern.txt |
| 9 | 15 | $ hadoop fs -cat hw1_out/part-00000 |