Skip to content
Permalink
Browse files
Update docs/rgbalancer.md
  • Loading branch information
milleruntime committed Aug 31, 2021
1 parent 14858bd commit d1cc653e97dc2186f261c6e27ff5c1c8af7fc9d5
Showing 1 changed file with 5 additions and 2 deletions.
@@ -28,14 +28,17 @@ different tservers. This gives us four groups of tablets: 01, 02, 03, and 04.
root@accumulo> createnamespace examples
root@accumulo> createtable examples.testRGB
root@accumulo examples.testRGB> addsplits -t examples.testRGB 01b 01m 01r 01z 02b 02m 02r 02z 03b 03m 03r 03z 04a 04b 04c 04d 04e 04f 04g 04h 04i 04j 04k 04l 04m 04n 04o 04p

Run the tables command with the "-l" option to find the table ID.

root@accumulo examples.testRGB> tables -l
accumulo.metadata => !0
accumulo.replication => +rep
accumulo.root => +r
testRGB => 2
trace => 1

After adding the splits we look at the locations in the metadata table.
Using the table ID for part of the begin and end row scan options, look at the locations in the metadata table.

root@accumulo examples.testRGB> scan -t accumulo.metadata -b 2; -e 2< -c loc
2;01b loc:34a5f6e086b000c [] ip-10-1-2-25:9997
@@ -98,7 +101,7 @@ default tablet are configured to be in group 04.

root@accumulo examples.testRGB> config -t examples.testRGB -s table.custom.balancer.group.regex.pattern=(\d\d).*
root@accumulo examples.testRGB> config -t examples.testRGB -s table.custom.balancer.group.regex.default=04
root@accumulo examples.testRGB> config -t examples.testRGB -s table.balancer=org.apache.accumulo.server.master.balancer.RegexGroupBalancer
root@accumulo examples.testRGB> config -t examples.testRGB -s table.balancer=org.apache.accumulo.core.spi.balancer.RegexGroupBalancer

After waiting a bit, look at the tablet locations again and all is good.

0 comments on commit d1cc653

Please sign in to comment.