public class VerifyReplication
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
Two counters are provided, Verifier.Counters.GOODROWS and BADROWS. The reason for a why a row is different is shown in the map's log.
Modifier and Type | Class and Description |
---|---|
static class |
VerifyReplication.Verifier
Map-only comparator for 2 tables
|
Modifier and Type | Field and Description |
---|---|
(package private) static long |
endTime |
(package private) static String |
families |
private static org.apache.commons.logging.Log |
LOG |
static String |
NAME |
private static String |
PEER_CONFIG_PREFIX |
(package private) static String |
peerId |
(package private) static long |
startTime |
(package private) static String |
tableName |
(package private) static int |
versions |
Constructor and Description |
---|
VerifyReplication() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.mapreduce.Job |
createSubmittableJob(org.apache.hadoop.conf.Configuration conf,
String[] args)
Sets up the actual job.
|
private static boolean |
doCommandLine(String[] args) |
private static Pair<ReplicationPeerConfig,org.apache.hadoop.conf.Configuration> |
getPeerQuorumConfig(org.apache.hadoop.conf.Configuration conf) |
static void |
main(String[] args)
Main entry point.
|
private static void |
printUsage(String errorMsg) |
int |
run(String[] args) |
private static final org.apache.commons.logging.Log LOG
public static final String NAME
private static final String PEER_CONFIG_PREFIX
static long startTime
static long endTime
static int versions
static String tableName
static String families
static String peerId
private static Pair<ReplicationPeerConfig,org.apache.hadoop.conf.Configuration> getPeerQuorumConfig(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public static org.apache.hadoop.mapreduce.Job createSubmittableJob(org.apache.hadoop.conf.Configuration conf, String[] args) throws IOException
conf
- The current configuration.args
- The command line parameters.IOException
- When setting up the job fails.private static boolean doCommandLine(String[] args)
private static void printUsage(String errorMsg)
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.