[ 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
courses:mapreduce-tutorial:step-12 [2012/01/29 14:55]
majlis
courses:mapreduce-tutorial:step-12 [2012/01/31 09:39] (current)
straka Change Perl commandline syntax.
Line 15: Line 15:
  
  
 +===== Exercise =====
 +Change the word counting script {{:courses:mapreduce-tutorial:step-5-solution1.txt|step-12-exercise.pl}} to produce results in reducers manually using the mentioned environmental variables, and execute it using four reducers.
 +
 +  wget --no-check-certificate 'https://wiki.ufal.ms.mff.cuni.cz/_media/courses:mapreduce-tutorial:step-5-solution1.txt' -O 'step-12-exercise.pl'
 +  # NOW EDIT THE FILE
 +  # $EDITOR step-12-exercise.pl
 +  rm -rf step-12-out-ex; perl step-12-exercise.pl -c 4 -r 4 /home/straka/wiki/cs-text-medium/ step-12-out-ex
 +  less step-12-out-ex/part-*
 +
 +==== Solution ====
 +You can also download the solution {{:courses:mapreduce-tutorial:step-12-solution.txt|step-12-solution.pl}} and check the correct output.
 +  wget --no-check-certificate 'https://wiki.ufal.ms.mff.cuni.cz/_media/courses:mapreduce-tutorial:step-12-solution.txt' -O 'step-12-solution.pl'
 +  # NOW VIEW THE FILE
 +  # $EDITOR step-12-solution.pl
 +  rm -rf step-12-out-sol; perl step-12-solution.pl -c 4 -r 4 /home/straka/wiki/cs-text-medium/ step-12-out-sol
 +  less step-12-out-sol/vystup-*
  
 ---- ----
Line 27: Line 43:
 </table> </table>
 </html> </html>
- 

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