org.apache.hadoop.hbase.mapreduce
Class CopyTable

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.hadoop.hbase.mapreduce.CopyTable
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

@InterfaceAudience.Public
@InterfaceStability.Stable
public class CopyTable
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool

Tool used to copy a table to another one which can be on a different setup. It is also configurable with a start and time as well as a specification of the region server implementation if different from the local cluster.


Constructor Summary
CopyTable(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
static org.apache.hadoop.mapreduce.Job createSubmittableJob(org.apache.hadoop.conf.Configuration conf, String[] args)
          Deprecated. Use createSubmittableJob(String[]) instead
 org.apache.hadoop.mapreduce.Job createSubmittableJob(String[] args)
          Sets up the actual job.
static void main(String[] args)
          Main entry point.
 int run(String[] args)
           
 
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
 

Constructor Detail

CopyTable

public CopyTable(org.apache.hadoop.conf.Configuration conf)
Method Detail

createSubmittableJob

@Deprecated
public static org.apache.hadoop.mapreduce.Job createSubmittableJob(org.apache.hadoop.conf.Configuration conf,
                                                                              String[] args)
                                                            throws IOException
Deprecated. Use createSubmittableJob(String[]) instead

Sets up the actual job.

Parameters:
conf - The current configuration.
args - The command line parameters.
Returns:
The newly created job.
Throws:
IOException - When setting up the job fails.

createSubmittableJob

public org.apache.hadoop.mapreduce.Job createSubmittableJob(String[] args)
                                                     throws IOException
Sets up the actual job.

Parameters:
args - The command line parameters.
Returns:
The newly created job.
Throws:
IOException - When setting up the job fails.

main

public static void main(String[] args)
                 throws Exception
Main entry point.

Parameters:
args - The command line parameters.
Throws:
Exception - When running the job fails.

run

public int run(String[] args)
        throws Exception
Specified by:
run in interface org.apache.hadoop.util.Tool
Throws:
Exception


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.