@@ -419,9 +419,29 @@ function control_services() {
419
419
local group
420
420
local tserver
421
421
local G
422
+ local sserver
423
+ local gc
422
424
if [[ $ARG_ALL == 1 && $ARG_LOCAL == 0 && $operation == " stop" ]]; then
423
425
echo " Stopping Accumulo cluster..."
424
426
if ! isDebug; then
427
+ # Stop all of the the Scan Server processes
428
+ for group in $SSERVER_GROUPS ; do
429
+ echo " Executing $( green " $ARG_CMD " ) on $( purple scan servers) for group $( yellow " $group " ) "
430
+ hosts=" SSERVER_HOSTS_$group "
431
+ for sserver in ${! hosts} ; do
432
+ if canRunOnHost " $sserver " ; then
433
+ execute_command " $operation " " $sserver " sserver " $group " " -g" " $group "
434
+ fi
435
+ done
436
+ done
437
+ # Stop the GC processes, they scan and write to the metadata table
438
+ for gc in $GC_HOSTS ; do
439
+ if canRunOnHost " $gc " ; then
440
+ echo " Executing $( green " $ARG_CMD " ) on $( purple garbage collectors) "
441
+ execute_command " $operation " " $gc " gc " default"
442
+ fi
443
+ done
444
+ # Try to cleanly stop the TabletServers and Manager
425
445
if ! " $accumulo_cmd " admin stopAll; then
426
446
echo " Invalid password or unable to connect to the manager"
427
447
echo " Initiating forced shutdown in 15 seconds (Ctrl-C to abort)"
@@ -500,7 +520,6 @@ function control_services() {
500
520
done
501
521
fi
502
522
503
- local gc
504
523
if [[ $ARG_ALL == 1 || $ARG_GC == 1 ]]; then
505
524
for gc in $GC_HOSTS ; do
506
525
if canRunOnHost " $gc " ; then
@@ -521,7 +540,6 @@ function control_services() {
521
540
fi
522
541
523
542
local sserver_groups
524
- local sserver
525
543
if [[ $ARG_ALL == 1 || $ARG_SSERVER == 1 ]]; then
526
544
sserver_groups=$SSERVER_GROUPS
527
545
if [[ -n $ARG_SSERVER_GROUP ]]; then
0 commit comments