@InterfaceAudience.Public public class CopyTable extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
allCells |
(package private) int |
batch |
(package private) boolean |
bulkload |
(package private) org.apache.hadoop.fs.Path |
bulkloadDir |
(package private) int |
cacheRow |
(package private) String |
dstTableName |
(package private) long |
endTime |
(package private) String |
families |
private static String |
JOB_NAME_CONF_KEY |
private static org.slf4j.Logger |
LOG |
(package private) static String |
NAME |
(package private) String |
peerAddress |
(package private) boolean |
readingSnapshot |
(package private) static boolean |
shuffle |
(package private) String |
snapshot |
(package private) String |
startRow |
(package private) long |
startTime |
(package private) String |
stopRow |
(package private) String |
tableName |
(package private) int |
versions |
Constructor and Description |
---|
CopyTable() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.Job |
createSubmittableJob(String[] args)
Sets up the actual job.
|
private boolean |
doCommandLine(String[] args) |
private org.apache.hadoop.fs.Path |
generateUniqTempDir(boolean withDirCreated) |
private void |
initCopyTableMapperReducerJob(org.apache.hadoop.mapreduce.Job job,
Scan scan) |
static void |
main(String[] args)
Main entry point.
|
private static void |
printUsage(String errorMsg) |
int |
run(String[] args) |
private static final org.slf4j.Logger LOG
static final String NAME
long startTime
long endTime
int batch
int cacheRow
int versions
String dstTableName
String peerAddress
boolean allCells
static boolean shuffle
boolean bulkload
org.apache.hadoop.fs.Path bulkloadDir
boolean readingSnapshot
private static final String JOB_NAME_CONF_KEY
public CopyTable()
private org.apache.hadoop.fs.Path generateUniqTempDir(boolean withDirCreated) throws IOException
IOException
private void initCopyTableMapperReducerJob(org.apache.hadoop.mapreduce.Job job, Scan scan) throws IOException
IOException
public org.apache.hadoop.mapreduce.Job createSubmittableJob(String[] args) throws IOException
args
- The command line parameters.IOException
- When setting up the job fails.private static void printUsage(String errorMsg)
private boolean doCommandLine(String[] args)
public static void main(String[] args) throws Exception
args
- The command line parameters.Exception
- When running the job fails.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.