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/25 22:12] straka |
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 29: | Line 29: | ||
| ===== Exercise ===== | ===== Exercise ===== | ||
| - | 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 ' | ||
| + | # NOW VIEW THE FILE | ||
| + | # $EDITOR step-10-wc-without-combiner.pl | ||
| + | rm -rf step-10-out-wout; | ||
| + | |||
| + | wget --no-check-certificate ' | ||
| + | # NOW VIEW THE FILE | ||
| + | # $EDITOR step-10-wc-with-combiner.pl | ||
| + | rm -rf step-10-out-with; | ||
| How would you explain the results? | How would you explain the results? | ||
| + | ---- | ||
| + | |||
| + | < | ||
| + | <table style=" | ||
| + | <tr> | ||
| + | <td style=" | ||
| + | <td style=" | ||
| + | <td style=" | ||
| + | </tr> | ||
| + | </ | ||
| + | </ | ||
