close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Dec 17, 2011, 5:12:03 PM (13 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v5
|
v6
|
|
44 | 44 | * grep 這個命令是擷取文件裡面特定的字元,在Hadoop example中此指令可以擷取文件中有此指定文字的字串,並作計數統計[[BR]]grep is a command to extract specific characters in documents. In hadoop examples, you can use this command to extract strings match the regular expression and count for matched strings. |
45 | 45 | {{{ |
46 | | $ hadoop fs -put /etc/hadoop/conf lab5_input |
47 | 46 | $ hadoop fs -ls lab5_input |
48 | 47 | $ hadoop jar hadoop-examples.jar grep lab5_input lab5_out3 'dfs[a-z.]+' |