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-4 [2012/01/28 11:58] majlis Added links to previous and next chapter. |
courses:mapreduce-tutorial:step-4 [2012/01/31 09:40] (current) straka Change Perl commandline syntax. |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Sometimes it is useful to count events differently than outputting them as (key, value) pairs. For that reason Hadoop offers simple counter framework. | Sometimes it is useful to count events differently than outputting them as (key, value) pairs. For that reason Hadoop offers simple counter framework. | ||
| - | Hadoop maintains a collection of pre-defined and user-defined counters. Every counter is identified by its group name and counter name. To increment a counter, the following code can be used: | + | Hadoop maintains a collection of pre-defined and user-defined counters. Every counter is identified by its group name and counter name. The group name and counter name is an arbitrary string -- for example group " |
| <code perl> | <code perl> | ||
| Line 17: | Line 17: | ||
| ===== Exercise ===== | ===== Exercise ===== | ||
| - | Run a Hadoop job on ''/ | + | Run a Hadoop job on ''/ |
| wget --no-check-certificate ' | wget --no-check-certificate ' | ||
| - | rm -rf step-4-out-ex; | + | |
| + | # $EDITOR step-4-exercise.pl | ||
| + | | ||
| + | less step-4-out-ex/ | ||
| ==== Solution ==== | ==== Solution ==== | ||
| You can also download the solution {{: | You can also download the solution {{: | ||
| wget --no-check-certificate ' | wget --no-check-certificate ' | ||
| - | rm -rf step-4-out-sol; | + | |
| + | # $EDITOR step-3-solution.pl | ||
| + | | ||
| + | less step-4-out-sol/ | ||
| ---- | ---- | ||
