Class BalanceRequest

java.lang.Object
org.apache.hadoop.hbase.client.BalanceRequest

@Public public final class BalanceRequest extends Object
Encapsulates options for executing a run of the Balancer.
  • Field Details

  • Constructor Details

    • BalanceRequest

      private BalanceRequest(boolean dryRun, boolean ignoreRegionsInTransition)
  • Method Details

    • newBuilder

      Create a builder to construct a custom BalanceRequest.
    • defaultInstance

      Get a BalanceRequest for a default run of the balancer. The default mode executes any moves calculated and will not run if regions are already in transition.
    • isDryRun

      public boolean isDryRun()
      Returns true if the balancer should run in dry run mode, otherwise false. In dry run mode, moves will be calculated but not executed.
    • isIgnoreRegionsInTransition

      public boolean isIgnoreRegionsInTransition()
      Returns true if the balancer should execute even if regions are in transition, otherwise false. This is an advanced usage feature, as it can cause more issues than it fixes.