@InterfaceAudience.Public public class RegionMover extends AbstractHBaseTool implements Closeable
load() or unload() methods for the desired operations.| 限定符和类型 | 类和说明 |
|---|---|
static class |
RegionMover.RegionMoverBuilder
Builder for Region mover.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_MOVE_RETRIES_MAX |
static int |
DEFAULT_MOVE_WAIT_MAX |
static int |
DEFAULT_SERVERSTART_WAIT_MAX |
static String |
MOVE_RETRIES_MAX_KEY |
static String |
MOVE_WAIT_MAX_KEY |
static String |
SERVERSTART_WAIT_MAX_KEY |
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addOptions() |
void |
close() |
protected int |
doWork() |
boolean |
load()
Loads the specified
hostname with regions listed in the filename RegionMover
Object has to be created using RegionMover(RegionMoverBuilder) |
static void |
main(String[] args) |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
boolean |
unload()
Unload regions from given
hostname using ack/noAck mode and maxthreads.In
noAck mode we do not make sure that region is successfully online on the target region
server,hence it is best effort.We do not unload regions to hostnames given in
excludeFile. |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConfpublic static final int DEFAULT_MOVE_RETRIES_MAX
public static final int DEFAULT_MOVE_WAIT_MAX
public static final int DEFAULT_SERVERSTART_WAIT_MAX
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseablepublic boolean load()
throws ExecutionException,
InterruptedException,
TimeoutException
hostname with regions listed in the filename RegionMover
Object has to be created using RegionMover(RegionMoverBuilder)ExecutionExceptionInterruptedExceptionTimeoutExceptionpublic boolean unload()
throws InterruptedException,
ExecutionException,
TimeoutException
hostname using ack/noAck mode and maxthreads.In
noAck mode we do not make sure that region is successfully online on the target region
server,hence it is best effort.We do not unload regions to hostnames given in
excludeFile.InterruptedExceptionExecutionExceptionTimeoutExceptionprotected void addOptions()
addOptions 在类中 AbstractHBaseToolprotected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions 在类中 AbstractHBaseToolprotected int doWork()
throws Exception
doWork 在类中 AbstractHBaseToolExceptionpublic static void main(String[] args)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.