[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
courses:mapreduce-tutorial:step-3 [2012/01/24 20:06]
straka
courses:mapreduce-tutorial:step-3 [2012/01/24 21:11]
straka
Line 5: Line 5:
 ===== Example Perl mapper ===== ===== Example Perl mapper =====
  
-<code perl>+<file perl mapper.pl>
 #!/usr/bin/perl #!/usr/bin/perl
  
Line 28: Line 28:
  
 $runner->run(); $runner->run();
-</code>+</file>
  
 The values ''input_format'', ''output_format'' and ''output_compression'' could be left out, because they are all set to their default value. The values ''input_format'', ''output_format'' and ''output_compression'' could be left out, because they are all set to their default value.
Line 40: Line 40:
 To check that your Hadoop environment works, try running a MR job on ''/home/straka/wiki/cs-text'', which outputs only articles with names beginning with a (ignoring the case). To check that your Hadoop environment works, try running a MR job on ''/home/straka/wiki/cs-text'', which outputs only articles with names beginning with a (ignoring the case).
  
 +{{.:exercise.txt|Solution.pl}}

[ Back to the navigation ] [ Back to the content ]