Package org.apache.hadoop.hbase.test
Class IntegrationTestBigLinkedList.Verify
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList.Verify
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
- Direct Known Subclasses:
IntegrationTestBigLinkedListWithVisibility.VisibilityVerify
- Enclosing class:
- IntegrationTestBigLinkedList
static class IntegrationTestBigLinkedList.Verify
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
A Map Reduce job that verifies that the linked lists generated by
IntegrationTestBigLinkedList.Generator do not have
any holes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDon't change the order of these enums.static classstatic classPer reducer, we output problem rows as byte arrays so can be used as input for subsequent investigative mapreduce jobs. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.hadoop.io.BytesWritableprotected static final org.apache.hadoop.io.BytesWritableprotected org.apache.hadoop.mapreduce.Jobprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleFailure(org.apache.hadoop.mapreduce.Counters counters) intintintrun(org.apache.hadoop.fs.Path outputDir, int numReducers) booleanverify(long expectedReferenced) protected booleanverifyExpectedValues(long expectedReferenced, org.apache.hadoop.mapreduce.Counters counters) Verify the values in the Counters against the expected number of entries written.protected booleanverifyUnexpectedValues(org.apache.hadoop.mapreduce.Counters counters) Verify that the Counters don't contain values which indicate an outright failure from the Reducers.Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
LOG
-
DEF
-
DEF_LOST_FAMILIES
-
job
-
-
Constructor Details
-
Verify
Verify()
-
-
Method Details
-
run
- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-
run
- Throws:
Exception
-
run
- Throws:
Exception
-
verify
- Throws:
Exception
-
verifyExpectedValues
protected boolean verifyExpectedValues(long expectedReferenced, org.apache.hadoop.mapreduce.Counters counters) Verify the values in the Counters against the expected number of entries written. Expected number of referenced entrires The Job's Counters object- Returns:
- True if the values match what's expected, false otherwise
-
verifyUnexpectedValues
Verify that the Counters don't contain values which indicate an outright failure from the Reducers. The Job's counters- Returns:
- True if the "bad" counter objects are 0, false otherwise
-
handleFailure
- Throws:
IOException
-