Changes between Version 2 and Version 3 of NCHCCloudCourse100802/Demo1
- Timestamp:
- Aug 11, 2010, 12:56:59 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NCHCCloudCourse100802/Demo1
v2 v3 3 3 4 4 {{{ 5 jazz@hadoop:~$ echo "sed -e \"s/ /\n/g\" | grep ." > streamingMapper.sh6 jazz@hadoop:~$ echo "uniq -c | awk '{print $2 \"\t\" $1}'" > streamingReducer.sh7 5 jazz@hadoop:~$ hadoop fs -rmr input output 8 6 jazz@hadoop:~$ hadoop fs -put /etc/hadoop/conf input 9 jazz@hadoop:~$ hadoop jar hadoop-streaming.jar -input input -output output -mapper `pwd`/streamingMapper.sh -reducer `pwd`/streamingReducer.sh7 jazz@hadoop:~$ hadoop jar hadoop-streaming.jar -input input -output output -mapper /bin/cat -reducer /usr/bin/wc 10 8 }}} 9 10 {{{ 11 jazz@hadoop:~$ echo "sed -e \"s/ /\n/g\" | grep ." > streamingMapper.sh 12 jazz@hadoop:~$ echo "uniq -c | awk '{print \$2 \"\t\" \$1}'" > streamingReducer.sh 13 jazz@hadoop:~$ chmod a+x streamingMapper.sh 14 jazz@hadoop:~$ chmod a+x streamingReducer.sh 15 jazz@hadoop:~$ hadoop fs -rmr input output 16 jazz@hadoop:~$ hadoop fs -put /etc/hadoop/conf input 17 jazz@hadoop:~$ hadoop jar hadoop-streaming.jar -input input -output output -mapper streamingMapper.sh -reducer streamingReducer.sh -file streamingMapper.sh -file streamingReducer.sh 18 }}}