Changes between Version 2 and Version 3 of waue/2009/0922
- Timestamp:
- Sep 28, 2009, 9:25:07 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
waue/2009/0922
v2 v3 43 43 運行: 44 44 {{{ 45 #!perl46 47 45 c1=" perl -ne 'if(/.*\t(.*)/){\$sum+=\$1;}END{print \"\$sum\";}' " 48 46 # 注意 這裡 $ 要寫成 \$ " 寫成 \" 49 47 50 echo $c1; # 打印輸出 perl -ne 'if(/.*"t(.*)/){$sum+=$1;}END{print $sum;}' 48 echo $c1; 49 51 50 hadoop jar hadoop-0.18.3-streaming.jar 52 51 -input file:///data/hadoop/lky/jar/tt