Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
courses:mapreduce-tutorial:step-10 [2012/01/28 16:44] majlis Commands for execution were added. |
courses:mapreduce-tutorial:step-10 [2012/01/31 09:38] (current) straka Change Perl commandline syntax. |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| <file perl> | <file perl> | ||
| - | package Mapper; | + | package |
| ... | ... | ||
| - | package Reducer; | + | package |
| ... | ... | ||
| - | package | + | package |
| use Hadoop:: | use Hadoop:: | ||
| my $runner = Hadoop:: | my $runner = Hadoop:: | ||
| - | mapper => Mapper-> | + | mapper => My::Mapper-> |
| - | combiner => Reducer-> | + | combiner => My::Reducer-> |
| - | reducer => Reducer-> | + | reducer => My::Reducer-> |
| input_format => ' | input_format => ' | ||
| ... | ... | ||
| Line 31: | Line 31: | ||
| Compare the effect of adding the combiner to a MR job which counts occurrences of words in ''/ | Compare the effect of adding the combiner to a MR job which counts occurrences of words in ''/ | ||
| wget --no-check-certificate ' | wget --no-check-certificate ' | ||
| - | rm -rf step-10-out-wout; | + | |
| + | # $EDITOR step-10-wc-without-combiner.pl | ||
| + | | ||
| | | ||
| wget --no-check-certificate ' | wget --no-check-certificate ' | ||
| - | rm -rf step-10-out-with; | + | |
| + | # $EDITOR step-10-wc-with-combiner.pl | ||
| + | | ||
| How would you explain the results? | How would you explain the results? | ||
