public class BigtableSyncTableJob extends SyncTable
Base source authored by SyncTable.
SyncTable is part 2 of 2 stages used for byte level validation between a source and target
table only. BigtableSyncTableJob extends functionality to provide connectivity to Bigtable as a
source or target and relies on SyncTable for core
functionality. BigtableSyncTableJob overrides dryrun configuration as true by default to perform
a read-only validation report only.
SyncTable is a Mapreduce job that generates hashes on the target table and compares these hashes with the output from . For diverging hashes, cell-level comparison is performed.
SyncTable.SyncMapper| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.mapreduce.Counters |
counters |
static String |
SOURCE_BT_APP_PROFILE_CONF_KEY |
static String |
SOURCE_BT_INSTANCE_CONF_KEY |
static String |
SOURCE_BT_PROJECTID_CONF_KEY |
static String |
TARGET_BT_APP_PROFILE_CONF_KEY |
static String |
TARGET_BT_INSTANCE_CONF_KEY |
static String |
TARGET_BT_PROJECTID_CONF_KEY |
| Constructor and Description |
|---|
BigtableSyncTableJob(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doCommandLine(SyncTable syncTable,
String[] args)
SyncTable command line parsing utility
|
String |
getSourceBigtableAppProfile() |
String |
getSourceBigtableInstance() |
String |
getSourceBigtableProjectId() |
String |
getTargetBigtableAppProfile() |
String |
getTargetBigtableInstance() |
String |
getTargetBigtableProjectId() |
static void |
main(String[] args)
Main entry point.
|
static void |
printUsage(String errorMsg,
String[] args) |
int |
run(String[] args) |
boolean |
verifyRequiredArgsSet(SyncTable syncTable,
String[] args,
String sourceBigtableProjectId,
String sourceBigtableInstance,
String targetBigtableProjectId,
String targetBigtableInstance)
verify required options and args are correctly set
|
createSubmittableJobpublic static final String SOURCE_BT_PROJECTID_CONF_KEY
public static final String SOURCE_BT_INSTANCE_CONF_KEY
public static final String SOURCE_BT_APP_PROFILE_CONF_KEY
public static final String TARGET_BT_PROJECTID_CONF_KEY
public static final String TARGET_BT_INSTANCE_CONF_KEY
public static final String TARGET_BT_APP_PROFILE_CONF_KEY
protected org.apache.hadoop.mapreduce.Counters counters
public BigtableSyncTableJob(org.apache.hadoop.conf.Configuration conf)
protected boolean doCommandLine(SyncTable syncTable, String[] args)
args - public boolean verifyRequiredArgsSet(SyncTable syncTable, String[] args, String sourceBigtableProjectId, String sourceBigtableInstance, String targetBigtableProjectId, String targetBigtableInstance)
args - sourceBigtableProjectId - sourceBigtableInstance - targetBigtableProjectId - targetBigtableInstance - public String getSourceBigtableProjectId()
public String getSourceBigtableInstance()
public String getSourceBigtableAppProfile()
public String getTargetBigtableProjectId()
public String getTargetBigtableInstance()
public String getTargetBigtableAppProfile()