[ 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-25 [2012/01/30 15:46]
majlis
courses:mapreduce-tutorial:step-25 [2012/01/31 09:53]
straka Change Java commandline syntax.
Line 78: Line 78:
   wget --no-check-certificate 'https://wiki.ufal.ms.mff.cuni.cz/_export/code/courses:mapreduce-tutorial:step-25?codeblock=0' -O 'WordCount.java'   wget --no-check-certificate 'https://wiki.ufal.ms.mff.cuni.cz/_export/code/courses:mapreduce-tutorial:step-25?codeblock=0' -O 'WordCount.java'
   make -f /net/projects/hadoop/java/Makefile WordCount.jar   make -f /net/projects/hadoop/java/Makefile WordCount.jar
-  rm -rf step-25-out-ex1; /net/projects/hadoop/bin/hadoop -r 1 WordCount.jar /home/straka/wiki/cs-text-small step-25-out-ex1+  rm -rf step-25-out-ex1; /net/projects/hadoop/bin/hadoop WordCount.jar -r 1 /home/straka/wiki/cs-text-small step-25-out-ex1
   less step-25-out-ex1/part-*   less step-25-out-ex1/part-*
  
Line 165: Line 165:
     job.setOutputKeyClass(Text.class);     job.setOutputKeyClass(Text.class);
     job.setOutputValueClass(NullWritable.class);     job.setOutputValueClass(NullWritable.class);
 +    job.setMapOutputValueClass(IntWritable.class);
  
     job.setInputFormatClass(KeyValueTextInputFormat.class);     job.setInputFormatClass(KeyValueTextInputFormat.class);
Line 184: Line 185:
   wget --no-check-certificate 'https://wiki.ufal.ms.mff.cuni.cz/_export/code/courses:mapreduce-tutorial:step-25?codeblock=3' -O 'ArticlesAndWords.java'   wget --no-check-certificate 'https://wiki.ufal.ms.mff.cuni.cz/_export/code/courses:mapreduce-tutorial:step-25?codeblock=3' -O 'ArticlesAndWords.java'
   make -f /net/projects/hadoop/java/Makefile ArticlesAndWords.jar   make -f /net/projects/hadoop/java/Makefile ArticlesAndWords.jar
-  rm -rf step-25-out-ex2; /net/projects/hadoop/bin/hadoop -r 1 ArticlesAndWords.jar /home/straka/wiki/cs-text-small step-25-out-ex2+  rm -rf step-25-out-ex2; /net/projects/hadoop/bin/hadoop ArticlesAndWords.jar -c 2 -r 2 /home/straka/wiki/cs-text-small step-25-out-ex2
   less step-25-out-ex2/part-*   less step-25-out-ex2/part-*
  

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