@@ -473,9 +473,29 @@ function control_services() {
473
473
local group
474
474
local tserver
475
475
local G
476
+ local sserver
477
+ local gc
476
478
if [[ $ARG_ALL == 1 && $ARG_LOCAL == 0 && $operation == " stop" ]]; then
477
479
echo " Stopping Accumulo cluster..."
478
480
if ! isDebug; then
481
+ # Stop all of the the Scan Server processes
482
+ for group in $SSERVER_GROUPS ; do
483
+ echo " Executing $( green " $ARG_CMD " ) on $( purple scan servers) for group $( yellow " $group " ) "
484
+ hosts=" SSERVER_HOSTS_$group "
485
+ for sserver in ${! hosts} ; do
486
+ if canRunOnHost " $sserver " ; then
487
+ execute_command " $operation " " $sserver " sserver " $group " " -g" " $group "
488
+ fi
489
+ done
490
+ done
491
+ # Stop the GC processes, they scan and write to the metadata table
492
+ for gc in $GC_HOSTS ; do
493
+ if canRunOnHost " $gc " ; then
494
+ echo " Executing $( green " $ARG_CMD " ) on $( purple garbage collectors) "
495
+ execute_command " $operation " " $gc " gc " default"
496
+ fi
497
+ done
498
+ # Try to cleanly stop the TabletServers and Manager
479
499
if ! " $accumulo_cmd " admin stopAll; then
480
500
echo " Invalid password or unable to connect to the manager"
481
501
echo " Initiating forced shutdown in 15 seconds (Ctrl-C to abort)"
@@ -550,7 +570,6 @@ function control_services() {
550
570
done
551
571
fi
552
572
553
- local gc
554
573
if [[ $ARG_ALL == 1 || $ARG_GC == 1 ]]; then
555
574
for gc in $GC_HOSTS ; do
556
575
if canRunOnHost " $gc " ; then
@@ -581,7 +600,6 @@ function control_services() {
581
600
fi
582
601
583
602
local sserver_groups
584
- local sserver
585
603
if [[ $ARG_ALL == 1 || $ARG_SSERVER == 1 ]]; then
586
604
sserver_groups=$SSERVER_GROUPS
587
605
if [[ -n $ARG_SSERVER_GROUP ]]; then
0 commit comments