edu.umd.cloud9.example.pagerank
Class BuildPageRankRecords
java.lang.Object
org.apache.hadoop.conf.Configured
edu.umd.cloud9.example.pagerank.BuildPageRankRecords
- All Implemented Interfaces:
- Configurable, Tool
public class BuildPageRankRecords
- extends Configured
- implements Tool
Driver program that takes a plain-text encoding of a directed graph and
builds corresponding Hadoop structures for representing the graph.
Command-line parameters are as follows:
- [inputDir]: input directory
- [outputDir]: output directory
- [numNodes]: number of nodes in the graph
- Author:
- Jimmy Lin, Michael Schatz
|
Method Summary |
static void |
main(String[] args)
Dispatches command-line arguments to the tool via the
ToolRunner. |
int |
run(String[] args)
Runs this tool. |
BuildPageRankRecords
public BuildPageRankRecords()
run
public int run(String[] args)
throws Exception
- Runs this tool.
- Specified by:
run in interface Tool
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Dispatches command-line arguments to the tool via the
ToolRunner.
- Throws:
Exception