edu.umd.cloud9.example.pagerank
Class PartitionGraph
java.lang.Object
org.apache.hadoop.conf.Configured
edu.umd.cloud9.example.pagerank.PartitionGraph
- All Implemented Interfaces:
- Configurable, Tool
public class PartitionGraph
- extends Configured
- implements Tool
Driver program for partitioning the graph. Command-line arguments are as
follows:
- [inputDir]: input directory
- [outputDir]: output directory
- [numPartitions]: number of partitions
- [useRange?]: 1 to user range partitioning or 0 otherwise
- [nodeCount]: number of nodes in the graph
- Author:
- Jimmy Lin, Michael Schatz
PartitionGraph
public PartitionGraph()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
run
public int run(String[] args)
throws IOException
- Specified by:
run in interface Tool
- Throws:
IOException