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/25 21:52] straka |
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 ' | ||
| + | # NOW EDIT THE FILE | ||
| + | # $EDITOR step-4-exercise.pl | ||
| + | rm -rf step-4-out-ex; | ||
| + | less step-4-out-ex/ | ||
| - | {{.: | + | ==== Solution ==== |
| + | You can also download the solution | ||
| + | wget --no-check-certificate ' | ||
| + | # NOW VIEW THE FILE | ||
| + | # $EDITOR step-3-solution.pl | ||
| + | rm -rf step-4-out-sol; | ||
| + | less step-4-out-sol/ | ||
| + | ---- | ||
| + | |||
| + | < | ||
| + | <table style=" | ||
| + | <tr> | ||
| + | <td style=" | ||
| + | <td style=" | ||
| + | <td style=" | ||
| + | </tr> | ||
| + | </ | ||
| + | </ | ||
