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:
hadoop jar dist/cloud9-X.X.X.jar edu.umd.cloud9.collection.clue.CountClueWarcRecords \
-libjars lib/guava-X.X.X.jar \
-original -path /shared/collections/ClueWeb09/collection.raw/ -segment 1 \
-docnoMapping /shared/collections/ClueWeb09/docno-mapping.dat -countOutput records.txt
hadoop jar dist/cloud9-X.X.X.jar edu.umd.cloud9.collection.clue.CountClueWarcRecords \
-libjars lib/guava-X.X.X.jar \
-repacked -path /shared/collections/ClueWeb09/collection.compressed.block/en.01 \
-docnoMapping /shared/collections/ClueWeb09/docno-mapping.dat -countOutput records.txt
- 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
COUNT_OPTION
public static final String COUNT_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