public static enum HadoopJobType.AdminJobType extends Enum<HadoopJobType.AdminJobType>
| Enum Constant and Description |
|---|
copytable
The copytable job.
|
| Modifier and Type | Method and Description |
|---|---|
static List<HadoopJobType.AdminJobType> |
asList() |
static List<String> |
asStringList() |
static Set<String> |
asStringSet() |
static HadoopJobType.AdminJobType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HadoopJobType.AdminJobType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HadoopJobType.AdminJobType copytable
bin/hbase org.apache.hadoop.hbase.mapreduce.CopyTable --starttime=1265875194289 --endtime=1265878794289
--peer.adr=server1,server2,server3:2181:/hbase --families=myOldCf:myNewCf,cf2,cf3 TestTable <code>
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,
startrow the start row
stoprow the stop row
starttime beginning of the time range (unixtime in millis)
without endtime means from starttime to forever
endtime end of the time range. Ignored if no starttime specified.
versions number of cell versions to copy
new.name new table's name
peer.adr Address of the peer cluster given in the format
hbase.zookeeer.quorum:hbase.zookeeper.client.port:zookeeper.znode.parent
families comma-separated list of families to copy
To copy from cf1 to cf2, give sourceCfName:destCfName.
To keep the same name, just give "cfName"
all.cells also copy delete markers and deleted cells
Args:
tablename Name of the table to copy
public static HadoopJobType.AdminJobType[] values()
for (HadoopJobType.AdminJobType c : HadoopJobType.AdminJobType.values()) System.out.println(c);
public static HadoopJobType.AdminJobType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static List<HadoopJobType.AdminJobType> asList()
Copyright © 2026. All rights reserved.