edu.umd.cloud9.example.pagerank
Class RunPageRankSchimmy
java.lang.Object
org.apache.hadoop.conf.Configured
edu.umd.cloud9.example.pagerank.RunPageRankSchimmy
- All Implemented Interfaces:
- Configurable, Tool
public class RunPageRankSchimmy
- extends Configured
- implements Tool
Main driver program for running the Schimmy implementation of PageRank.
Command-line arguments are as follows:
- [basePath]: the base path
- [numNodes]: number of nodes in the graph
- [start]: starting iteration
- [end]: ending iteration
- [useCombiner?]: 1 for using combiner, 0 for not
- [useInMapCombiner?]: 1 for using in-mapper combining, 0 for not
- [useRange?]: 1 for range partitioning, 0 for not
The starting and ending iterations will correspond to paths
/base/path/iterXXXX and /base/path/iterYYYY. As a
example, if you specify 0 and 10 as the starting and ending iterations, the
driver program will start with the graph structure stored at
/base/path/iter0000; final results will be stored at
/base/path/iter0010.
- Author:
- Jimmy Lin, Michael Schatz
- See Also:
RunPageRankBasic
|
Method Summary |
static void |
main(String[] args)
Dispatches command-line arguments to the tool via the
ToolRunner. |
int |
run(String[] args)
Runs this tool. |
RunPageRankSchimmy
public RunPageRankSchimmy()
main
public static void main(String[] args)
throws Exception
- Dispatches command-line arguments to the tool via the
ToolRunner.
- Throws:
Exception
run
public int run(String[] args)
throws Exception
- Runs this tool.
- Specified by:
run in interface Tool
- Throws:
Exception