edu.umd.cloud9.collection.clue
Class CountClueWarcRecords
java.lang.Object
org.apache.hadoop.conf.Configured
edu.umd.cloud9.collection.clue.CountClueWarcRecords
- All Implemented Interfaces:
- Configurable, Tool
public class CountClueWarcRecords
- extends Configured
- implements Tool
Simple demo program to count the number of records in the ClueWeb09
collection, from either the original source WARC files or repacked
SequenceFiles. Sample invocations:
setenv HADOOP_CLASSPATH guava.jar
hadoop jar cloud9.jar edu.umd.cloud9.collection.clue.CountClueWarcRecords \
-libjars guava-r09.jar -original \
-path /shared/collections/ClueWeb09/collection.raw/ -segment 1 \
-docnoMapping /shared/collections/ClueWeb09/docno-mapping.dat
hadoop jar cloud9.jar edu.umd.cloud9.collection.clue.CountClueWarcRecords \
-repacked -path /shared/collections/ClueWeb09/collection.compressed.block/en.01 \
-docnoMapping /shared/collections/ClueWeb09/docno-mapping.dat
- Author:
- Jimmy Lin
|
Method Summary |
static void |
main(String[] args)
Dispatches command-line arguments to the tool via the ToolRunner. |
int |
run(String[] args)
Runs this tool. |
ORIGINAL_OPTION
public static final String ORIGINAL_OPTION
- See Also:
- Constant Field Values
REPACKED_OPTION
public static final String REPACKED_OPTION
- See Also:
- Constant Field Values
PATH_OPTION
public static final String PATH_OPTION
- See Also:
- Constant Field Values
MAPPING_OPTION
public static final String MAPPING_OPTION
- See Also:
- Constant Field Values
SEGMENT_OPTION
public static final String SEGMENT_OPTION
- See Also:
- Constant Field Values
CountClueWarcRecords
public CountClueWarcRecords()
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