Index: src/docbkx/book.xml
===================================================================
--- src/docbkx/book.xml (revision 1146528)
+++ src/docbkx/book.xml (working copy)
@@ -1355,7 +1355,40 @@
+
+
+ CopyTable
+
+ CopyTable is a utility that can copy part or of all of a table, either to the same cluster or another cluster. The usage is as follows:
+$ bin/hbase org.apache.hadoop.hbase.mapreduce.CopyTable [--rs.class=CLASS] [--rs.impl=IMPL] [--starttime=X] [--endtime=Y] [--new.name=NEW] [--peer.adr=ADR] tablename
+
+
+
+ Options:
+
+ rs.class hbase.regionserver.class of the peer cluster. Specify if different from current cluster.
+ rs.impl hbase.regionserver.impl of the peer cluster.
+ starttime Beginning of the time range. Without endtime means starttime to forever.
+ endtime End of the time range. Without endtime means starttime to forever.
+ new.name New table's name.
+ peer.adr Address of the peer cluster given in the format hbase.zookeeper.quorum:hbase.zookeeper.client.port:zookeeper.znode.parent
+ families Comma-separated list of ColumnFamilies to copy.
+
+ Args:
+
+ tablename Name of table to copy.
+
+
+ Example of copying 'TestTable' to a cluster that uses replication for a 1 hour window:
+$ bin/hbase org.apache.hadoop.hbase.mapreduce.CopyTable
+--rs.class=org.apache.hadoop.hbase.ipc.ReplicationRegionInterface
+--rs.impl=org.apache.hadoop.hbase.regionserver.replication.ReplicationRegionServer
+--starttime=1265875194289 --endtime=1265878794289
+--peer.adr=server1,server2,server3:2181:/hbase TestTable
+
+
+