25 | | hadoop@lucid:/opt/hadoop$ echo "sed -e \"s/ /\n/g\" | grep ." > streamingMapper.sh |
26 | | hadoop@lucid:/opt/hadoop$ echo "uniq -c | awk '{print \$2 \"\t\" \$1}'" > streamingReducer.sh |
27 | | hadoop@lucid:/opt/hadoop$ chmod a+x streamingMapper.sh |
28 | | hadoop@lucid:/opt/hadoop$ chmod a+x streamingReducer.sh |
29 | | hadoop@lucid:/opt/hadoop$ bin/hadoop fs -rmr input output |
30 | | hadoop@lucid:/opt/hadoop$ bin/hadoop fs -put conf input |
31 | | hadoop@lucid:/opt/hadoop$ bin/hadoop jar ./contrib/streaming/hadoop-0.20.2-streaming.jar -input input -output output -mapper streamingMapper.sh -reducer streamingReducer.sh -file streamingMapper.sh -file streamingReducer.sh |
| 25 | $ echo "sed -e \"s/ /\n/g\" | grep ." > streamingMapper.sh |
| 26 | $ echo "uniq -c | awk '{print \$2 \"\t\" \$1}'" > streamingReducer.sh |
| 27 | $ chmod 755 streaming*.sh |
| 28 | $ bin/hadoop fs -rmr input output |
| 29 | $ bin/hadoop fs -put conf input |
| 30 | $ bin/hadoop jar ./contrib/streaming/hadoop-0.20.2-streaming.jar -input input -output output -mapper streamingMapper.sh -reducer streamingReducer.sh -file streamingMapper.sh -file streamingReducer.sh |