Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
courses:mapreduce-tutorial:step-10 [2012/01/28 16:44] majlis Commands for execution were added. |
courses:mapreduce-tutorial:step-10 [2012/01/30 10:28] majlis |
||
---|---|---|---|
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 ' | ||
+ | # NOW VIEW THE FILE | ||
+ | # $EDITOR step-10-wc-without-combiner.pl | ||
rm -rf step-10-out-wout; | rm -rf step-10-out-wout; | ||
| | ||
wget --no-check-certificate ' | wget --no-check-certificate ' | ||
+ | # NOW VIEW THE FILE | ||
+ | # $EDITOR step-10-wc-with-combiner.pl | ||
rm -rf step-10-out-with; | rm -rf step-10-out-with; | ||