Skip to content

Commit c049fe3

Browse files
committed
cleanup
1 parent 0085fce commit c049fe3

File tree

4 files changed

+14
-106
lines changed

4 files changed

+14
-106
lines changed

hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncAdmin.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import static org.apache.hadoop.hbase.util.FutureUtils.addListener;
2121

2222
import com.google.protobuf.RpcChannel;
23+
import java.io.IOException;
2324
import java.util.Arrays;
2425
import java.util.Collection;
2526
import java.util.EnumSet;
@@ -1278,6 +1279,13 @@ default CompletableFuture<Boolean> balance(boolean forcible) {
12781279
);
12791280
}
12801281

1282+
/**
1283+
* Invoke the balancer with the given balance request. The BalanceRequest defines how the
1284+
* balancer will run. See {@link BalanceRequest} for more details.
1285+
*
1286+
* @param request defines how the balancer should run
1287+
* @return <code>true</code> if balancer ran, <code>false</code> otherwise.
1288+
*/
12811289
CompletableFuture<Boolean> balance(BalanceRequest request);
12821290

12831291
/**

hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/BalanceRSGroupRequest.java

Lines changed: 0 additions & 100 deletions
This file was deleted.

hbase-shell/src/main/ruby/shell/commands/balance_rsgroup.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ def help
2525
Parameter can be "force" or "dry_run":
2626
- "dry_run" will run the balancer to generate a plan, but will not actually execute that plan.
2727
This is useful for testing out new balance configurations. See the active HMaster logs for the results of the dry_run.
28-
- "force" tells master whether we should force balance even if there is region in transition.
28+
- "ignore_rit" tells master whether we should force the balancer to run even if there is region in transition.
2929
WARNING: For experts only. Forcing a balance may do more damage than repair when assignment is confused
3030
3131
Example:
3232
3333
hbase> balance_rsgroup 'my_group'
34-
hbase> balance_rsgroup 'my_group', 'force'
34+
hbase> balance_rsgroup 'my_group', 'ignore_rit'
3535
hbase> balance_rsgroup 'my_group', 'dry_run'
36-
hbase> balance_rsgroup 'my_group', 'dry_run', 'force'
36+
hbase> balance_rsgroup 'my_group', 'dry_run', 'ignore_rit'
3737
3838
EOF
3939
end

hbase-shell/src/main/ruby/shell/commands/balancer.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ def help
2727
Parameter can be "force" or "dry_run":
2828
- "dry_run" will run the balancer to generate a plan, but will not actually execute that plan.
2929
This is useful for testing out new balance configurations. See the active HMaster logs for the results of the dry_run.
30-
- "force" tells master whether we should force balance even if there is region in transition.
30+
- "ignore_rit" tells master whether we should force the balancer to run even if there is region in transition.
3131
WARNING: For experts only. Forcing a balance may do more damage than repair when assignment is confused
3232
3333
Examples:
3434
3535
hbase> balancer
36-
hbase> balancer "force"
36+
hbase> balancer "ignore_rit"
3737
hbase> balancer "dry_run"
38-
hbase> balancer "dry_run", "force"
38+
hbase> balancer "dry_run", "ignore_rit"
3939
EOF
4040
end
4141

0 commit comments

Comments
 (0)