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
Nested Classes -
Field Summary
FieldsModifier 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) booleanprivate static final org.slf4j.Loggerprivate static final int(package private) static final String(package private) static final String(package private) static final String(package private) static final StringDeprecated.(package private) org.apache.hadoop.fs.Path(package private) String(package private) URI(package private) StringDeprecated.Since 3.0.0, will be removed in 4.0.0 UsesourceUriinstead.(package private) static final String(package private) static final String(package private) static final StringDeprecated.Since 3.0.0, will be removed in 4.0.0 UseTARGET_URI_CONF_KEYinstead.(package private) String(package private) URI(package private) StringDeprecated.Since 3.0.0, will be removed in 4.0.0 UsetargetUriinstead. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.mapreduce.JobcreateSubmittableJob(String[] args) private booleandoCommandLine(String[] args) private voidinitCredentialsForHBase(String clusterKey, org.apache.hadoop.mapreduce.Job job) static voidMain entry point.private static voidprintUsage(String errorMsg) intMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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_KEYinstead.- 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_KEYinstead.- 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 UsesourceUriinstead. -
targetUri
-
targetZkCluster
Deprecated.Since 3.0.0, will be removed in 4.0.0 UsetargetUriinstead. -
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:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-
SOURCE_URI_CONF_KEYinstead.