public class PrePartition
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
Modifier and Type | Class and Description |
---|---|
static class |
PrePartition.PGMapper |
static class |
PrePartition.PGReducer |
Modifier and Type | Field and Description |
---|---|
int |
nodeSize |
Constructor and Description |
---|
PrePartition() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
The main entry point
|
int |
run(java.lang.String[] args)
submit the hadoop job for pre-partitioning
|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- [0]: input file path. [1]: output file path. [2]: the number of colors.java.lang.Exception
- by hadooppublic int run(java.lang.String[] args) throws java.lang.Exception
run
in interface org.apache.hadoop.util.Tool
args
- [0]: input file path. [1]: output file path. [2]: the number of colors.java.lang.Exception
- by hadoop