Changes between Version 2 and Version 3 of NCHCCloudCourse100802/Demo1


Ignore:
Timestamp:
Aug 11, 2010, 12:56:59 AM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NCHCCloudCourse100802/Demo1

    v2 v3  
    33
    44{{{
    5 jazz@hadoop:~$ echo "sed -e \"s/ /\n/g\" | grep ." > streamingMapper.sh
    6 jazz@hadoop:~$ echo "uniq -c | awk '{print $2 \"\t\" $1}'" > streamingReducer.sh
    75jazz@hadoop:~$ hadoop fs -rmr input output
    86jazz@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.sh
     7jazz@hadoop:~$ hadoop jar hadoop-streaming.jar -input input -output output -mapper /bin/cat -reducer /usr/bin/wc
    108}}}
     9
     10{{{
     11jazz@hadoop:~$ echo "sed -e \"s/ /\n/g\" | grep ." > streamingMapper.sh
     12jazz@hadoop:~$ echo "uniq -c | awk '{print \$2 \"\t\" \$1}'" > streamingReducer.sh
     13jazz@hadoop:~$ chmod a+x streamingMapper.sh
     14jazz@hadoop:~$ chmod a+x streamingReducer.sh
     15jazz@hadoop:~$ hadoop fs -rmr input output
     16jazz@hadoop:~$ hadoop fs -put /etc/hadoop/conf input
     17jazz@hadoop:~$ hadoop jar hadoop-streaming.jar -input input -output output -mapper streamingMapper.sh -reducer streamingReducer.sh -file streamingMapper.sh -file streamingReducer.sh
     18}}}