Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
courses:mapreduce-tutorial:step-31 [2012/02/06 13:10] straka |
courses:mapreduce-tutorial:step-31 [2012/02/06 13:23] straka |
||
---|---|---|---|
Line 37: | Line 37: | ||
This example reads the keys of ''/ | This example reads the keys of ''/ | ||
<code java Sum.java> | <code java Sum.java> | ||
+ | import java.io.IOException; | ||
+ | |||
+ | import org.apache.hadoop.conf.*; | ||
+ | import org.apache.hadoop.fs.Path; | ||
+ | import org.apache.hadoop.io.*; | ||
import org.apache.hadoop.mapreduce.*; | import org.apache.hadoop.mapreduce.*; | ||
import org.apache.hadoop.mapreduce.lib.allreduce.*; | import org.apache.hadoop.mapreduce.lib.allreduce.*; | ||
Line 106: | Line 111: | ||
less step-31-out/ | less step-31-out/ | ||
- | To run on a cluster | + | To run on a cluster |
- | rm -rf step-31-out; | + | rm -rf step-31-out; |
less step-31-out/ | less step-31-out/ | ||
Line 158: | Line 163: | ||
# NOW VIEW THE FILE | # NOW VIEW THE FILE | ||
# $EDITOR KMeans.java | # $EDITOR KMeans.java | ||
- | make -f / | + | make -f / |
You can run it using specified number of machines on the following input data: | You can run it using specified number of machines on the following input data: | ||
* ''/ | * ''/ |