File tree Expand file tree Collapse file tree 4 files changed +14
-106
lines changed
hbase-client/src/main/java/org/apache/hadoop/hbase/client
hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup
hbase-shell/src/main/ruby/shell/commands Expand file tree Collapse file tree 4 files changed +14
-106
lines changed Original file line number Diff line number Diff line change 20
20
import static org .apache .hadoop .hbase .util .FutureUtils .addListener ;
21
21
22
22
import com .google .protobuf .RpcChannel ;
23
+ import java .io .IOException ;
23
24
import java .util .Arrays ;
24
25
import java .util .Collection ;
25
26
import java .util .EnumSet ;
@@ -1278,6 +1279,13 @@ default CompletableFuture<Boolean> balance(boolean forcible) {
1278
1279
);
1279
1280
}
1280
1281
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
+ */
1281
1289
CompletableFuture <Boolean > balance (BalanceRequest request );
1282
1290
1283
1291
/**
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ def help
25
25
Parameter can be "force" or "dry_run":
26
26
- "dry_run" will run the balancer to generate a plan, but will not actually execute that plan.
27
27
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.
29
29
WARNING: For experts only. Forcing a balance may do more damage than repair when assignment is confused
30
30
31
31
Example:
32
32
33
33
hbase> balance_rsgroup 'my_group'
34
- hbase> balance_rsgroup 'my_group', 'force '
34
+ hbase> balance_rsgroup 'my_group', 'ignore_rit '
35
35
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 '
37
37
38
38
EOF
39
39
end
Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ def help
27
27
Parameter can be "force" or "dry_run":
28
28
- "dry_run" will run the balancer to generate a plan, but will not actually execute that plan.
29
29
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.
31
31
WARNING: For experts only. Forcing a balance may do more damage than repair when assignment is confused
32
32
33
33
Examples:
34
34
35
35
hbase> balancer
36
- hbase> balancer "force "
36
+ hbase> balancer "ignore_rit "
37
37
hbase> balancer "dry_run"
38
- hbase> balancer "dry_run", "force "
38
+ hbase> balancer "dry_run", "ignore_rit "
39
39
EOF
40
40
end
41
41
You can’t perform that action at this time.
0 commit comments