You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Set the following properties in accumulo.properties:

manager.tablet.watcher.interval=15s
tserver.ondemand.tablet.unloader.interval=1m
table.custom.ondemand.unloader.inactivity.threshold.seconds=120


Run the following commands in the shell:

createtable test
listtablets (1)
insert a b c d (2)
listtablets (3)
sleep 240 (4)
listtablets (5)
addsplits f t -t test (6)
listtablets (7)
setavailability -t test -b a -e f -a UNHOSTED (8)
sethostinggoal -t test -b g -e t -a HOSTED (9)
scan -t accumulo.metadata -c ~tab:availability (10) 
sleep 240 (11)
listtablets (12)
insert a b c d (13)
insert g h i j (14)
insert w x y z (15)
listtablets(16)
scan -t test (17)
scan -t test -b g (18)


  1. tablet unassigned, in ondemand state
  2. causes tablet to be hosted
  3. confirm that tablet is hosted
  4. wait 2x inactivity timeout, tablet should be unassigned
  5. confirm that tablet is unassigned
  6. add splits f and t
  7. default tablet is hosted (to perform split), new tablets are unassigned
  8. set tablet availability to unhosted
  9. set tablet availability to hosted
  10. confirm availability set
  11. wait 2x inactivity timeout, default tablet should be unassigned
  12. confirm that only f->t tablet is assigned
  13. fails because tablet -INF-> f is set to an availability of UNHOSTED 
  14. succeeds
  15. succeeds, causes tablet t->+INF to be hosted
  16. confirm that tablets f->t and t->+INF are hosted
  17. fails because tablet -INF-> f is set to an availability of UNHOSTED and an immediate scan was requested. (use -cl scan option to change)
  18. succeeds




  • No labels