Package org.apache.hadoop.hbase.client
Class BalanceRequest.Builder
java.lang.Object
org.apache.hadoop.hbase.client.BalanceRequest.Builder
- Enclosing class:
- BalanceRequest
Builder for constructing a
BalanceRequest
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theBalanceRequest
setDryRun
(boolean dryRun) Updates BalancerRequest to run the balancer in dryRun mode.setIgnoreRegionsInTransition
(boolean ignoreRegionsInTransition) Updates BalancerRequest to run the balancer even if there are regions in transition.
-
Field Details
-
dryRun
-
ignoreRegionsInTransition
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
setDryRun
Updates BalancerRequest to run the balancer in dryRun mode. In this mode, the balancer will try to find a plan but WILL NOT execute any region moves or call any coprocessors. You can run in dryRun mode regardless of whether the balancer switch is enabled or disabled, but dryRun mode will not run over an existing request or chore. Dry run is useful for testing out new balance configs. See the logs on the active HMaster for the results of the dry run. -
setIgnoreRegionsInTransition
Updates BalancerRequest to run the balancer even if there are regions in transition. WARNING: Advanced usage only, this could cause more issues than it fixes. -
build
Build theBalanceRequest
-