Class SyncTable
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.mapreduce.SyncTable
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
@Private
public class SyncTable
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) org.apache.hadoop.mapreduce.Counters
(package private) static final String
(package private) static final String
(package private) boolean
(package private) boolean
(package private) static final String
(package private) boolean
(package private) static final String
(package private) boolean
private static final org.slf4j.Logger
private static final int
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
Deprecated.(package private) org.apache.hadoop.fs.Path
(package private) String
(package private) URI
(package private) String
Deprecated.Since 3.0.0, will be removed in 4.0.0 UsesourceUri
instead.(package private) static final String
(package private) static final String
(package private) static final String
Deprecated.Since 3.0.0, will be removed in 4.0.0 UseTARGET_URI_CONF_KEY
instead.(package private) String
(package private) URI
(package private) String
Deprecated.Since 3.0.0, will be removed in 4.0.0 UsetargetUri
instead. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.mapreduce.Job
createSubmittableJob
(String[] args) private boolean
doCommandLine
(String[] args) private void
initCredentialsForHBase
(String clusterKey, org.apache.hadoop.mapreduce.Job job) static void
Main entry point.private static void
printUsage
(String errorMsg) int
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
-
SOURCE_HASH_DIR_CONF_KEY
- See Also:
-
SOURCE_TABLE_CONF_KEY
- See Also:
-
TARGET_TABLE_CONF_KEY
- See Also:
-
SOURCE_URI_CONF_KEY
- See Also:
-
SOURCE_ZK_CLUSTER_CONF_KEY
Deprecated.Since 3.0.0, will be removed in 4.0.0 UseSOURCE_URI_CONF_KEY
instead.- See Also:
-
TARGET_URI_CONF_KEY
- See Also:
-
TARGET_ZK_CLUSTER_CONF_KEY
Deprecated.Since 3.0.0, will be removed in 4.0.0 UseTARGET_URI_CONF_KEY
instead.- See Also:
-
DRY_RUN_CONF_KEY
- See Also:
-
DO_DELETES_CONF_KEY
- See Also:
-
DO_PUTS_CONF_KEY
- See Also:
-
IGNORE_TIMESTAMPS
- See Also:
-
sourceHashDir
org.apache.hadoop.fs.Path sourceHashDir -
sourceTableName
-
targetTableName
-
sourceUri
-
sourceZkCluster
Deprecated.Since 3.0.0, will be removed in 4.0.0 UsesourceUri
instead. -
targetUri
-
targetZkCluster
Deprecated.Since 3.0.0, will be removed in 4.0.0 UsetargetUri
instead. -
dryRun
boolean dryRun -
doDeletes
boolean doDeletes -
doPuts
boolean doPuts -
ignoreTimestamps
boolean ignoreTimestamps -
counters
org.apache.hadoop.mapreduce.Counters counters -
NUM_ARGS
- See Also:
-
-
Constructor Details
-
SyncTable
-
-
Method Details
-
initCredentialsForHBase
private void initCredentialsForHBase(String clusterKey, org.apache.hadoop.mapreduce.Job job) throws IOException - Throws:
IOException
-
createSubmittableJob
- Throws:
IOException
-
printUsage
-
doCommandLine
-
main
Main entry point.- Throws:
Exception
-
run
- Specified by:
run
in interfaceorg.apache.hadoop.util.Tool
- Throws:
Exception
-
SOURCE_URI_CONF_KEY
instead.