Class VerifyReplication.Verifier
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,KEYOUT,VALUEOUT>
org.apache.hadoop.hbase.mapreduce.TableMapper<ImmutableBytesWritable,Put>
org.apache.hadoop.hbase.mapreduce.replication.VerifyReplication.Verifier
- Enclosing class:
- VerifyReplication
Map-only comparator for 2 tables
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private Result
private String
private int
private int
private Connection
private ResultScanner
private Table
private int
private Connection
private Table
private Scan
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
cleanup
(org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, ImmutableBytesWritable, Put>.org.apache.hadoop.mapreduce.Mapper.Context context) private void
logFailRowAndIncreaseCounter
(org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, ImmutableBytesWritable, Put>.org.apache.hadoop.mapreduce.Mapper.Context context, VerifyReplication.Verifier.Counters counter, Result row, Result replicatedRow) void
map
(ImmutableBytesWritable row, Result value, org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, ImmutableBytesWritable, Put>.org.apache.hadoop.mapreduce.Mapper.Context context) Map method that compares every scanned row with the equivalent from a distant cluster.Methods inherited from class org.apache.hadoop.mapreduce.Mapper
run, setup
-
Field Details
-
sourceConnection
-
sourceTable
-
replicatedConnection
-
replicatedTable
-
replicatedScanner
-
currentCompareRowInPeerTable
-
tableScan
-
reCompareTries
-
reCompareBackoffExponent
-
sleepMsBeforeReCompare
-
delimiter
-
verbose
-
batch
-
-
Constructor Details
-
Verifier
public Verifier()
-
-
Method Details
-
map
public void map(ImmutableBytesWritable row, Result value, org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, throws IOExceptionImmutableBytesWritable, Put>.org.apache.hadoop.mapreduce.Mapper.Context context) Map method that compares every scanned row with the equivalent from a distant cluster.- Overrides:
map
in classorg.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,
Result, ImmutableBytesWritable, Put> - Parameters:
row
- The current table row key.value
- The columns.context
- The current context.- Throws:
IOException
- When something is broken with the data.
-
logFailRowAndIncreaseCounter
private void logFailRowAndIncreaseCounter(org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, ImmutableBytesWritable, Put>.org.apache.hadoop.mapreduce.Mapper.Context context, VerifyReplication.Verifier.Counters counter, Result row, Result replicatedRow) -
cleanup
protected void cleanup(org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable, Result, ImmutableBytesWritable, Put>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
cleanup
in classorg.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,
Result, ImmutableBytesWritable, Put>
-