public class RandomGenerator
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
Modifier and Type | Class and Description |
---|---|
static class |
RandomGenerator.RandomGeneratorMapper |
Constructor and Description |
---|
RandomGenerator() |
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 of generating a random graph.
|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- [0]: the number of nodes. [1]: the number of edges. [2]: the number of tasks to run.
[3]: output file pathjava.lang.Exception
- by hadooppublic int run(java.lang.String[] args) throws java.lang.Exception
run
in interface org.apache.hadoop.util.Tool
args
- [0]: the number of nodes. [1]: the number of edges. [2]: the number of tasks to run.
[3]: output file pathjava.lang.Exception
- by hadoop