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
Modifier and TypeClassDescriptionstatic enum
Don't change the order of these enums.static class
static class
Per reducer, we output problem rows as byte arrays so can be used as input for subsequent investigative mapreduce jobs. -
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.apache.hadoop.io.BytesWritable
protected static final org.apache.hadoop.io.BytesWritable
protected org.apache.hadoop.mapreduce.Job
private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleFailure
(org.apache.hadoop.mapreduce.Counters counters) int
int
int
run
(org.apache.hadoop.fs.Path outputDir, int numReducers) boolean
verify
(long expectedReferenced) protected boolean
verifyExpectedValues
(long expectedReferenced, org.apache.hadoop.mapreduce.Counters counters) Verify the values in the Counters against the expected number of entries written.protected boolean
verifyUnexpectedValues
(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, setConf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
run
in 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
-