This is an automated email from the ASF dual-hosted git repository.

dlmarion pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 8770c3bfa2 Fixed accumulo-cluster cli commands (#6415)
8770c3bfa2 is described below

commit 8770c3bfa285ac9c7f4694a731a13f5a3d89a9ab
Author: Dave Marion <[email protected]>
AuthorDate: Mon Jun 8 13:25:08 2026 -0400

    Fixed accumulo-cluster cli commands (#6415)
    
    PR #6353 modified some CLI commands. Fixed the
    accumulo-cluster script to use the new commands.
---
 assemble/bin/accumulo-cluster | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/assemble/bin/accumulo-cluster b/assemble/bin/accumulo-cluster
index b668810200..7e8bd9a00c 100755
--- a/assemble/bin/accumulo-cluster
+++ b/assemble/bin/accumulo-cluster
@@ -306,7 +306,7 @@ function parse_config() {
 
   RG_FILE="$AC_TMP_DIR/ZooInfoViewer.out"
   debug "Printing resource groups to $RG_FILE"
-  "$accumulo_cmd" conf zoo-info-viewer --print-resource-groups >"$RG_FILE" || 
(echo "Error getting resource groups. Did you init?" && exit 1)
+  "$accumulo_cmd" zk info-viewer --print-resource-groups >"$RG_FILE" || (echo 
"Error getting resource groups. Did you init?" && exit 1)
   read -r -a all_resource_groups <<<"$(grep -F 'Resource Groups: ' "$RG_FILE" 
| cut -c18-)"
   debug "All resource groups: ${all_resource_groups[*]}"
 
@@ -526,7 +526,7 @@ function control_services() {
         # before zapping the nodes in ZooKeeper
         wait
         echo "Cleaning tablet server entries from zookeeper for resource group 
$group"
-        debugOrRunAsync "$accumulo_cmd" proc zoo-zap -verbose -tservers 
--include-groups "$group"
+        debugOrRunAsync "$accumulo_cmd" zk zap -verbose -tservers 
--include-groups "$group"
       fi
       echo "done"
     done
@@ -580,7 +580,7 @@ function control_services() {
         # before zapping the nodes in ZooKeeper
         wait
         echo "Cleaning scan server entries from zookeeper for resource group 
$group"
-        debugOrRunAsync "$accumulo_cmd" proc zoo-zap -verbose -sservers 
--include-groups "$group"
+        debugOrRunAsync "$accumulo_cmd" zk zap -verbose -sservers 
--include-groups "$group"
       fi
     done
   fi
@@ -605,14 +605,14 @@ function control_services() {
         # before zapping the nodes in ZooKeeper
         wait
         echo "Cleaning compactor entries from zookeeper for resource group 
$group"
-        debugOrRunAsync "$accumulo_cmd" proc zoo-zap -verbose -compactors 
--include-groups "$group"
+        debugOrRunAsync "$accumulo_cmd" zk zap -verbose -compactors 
--include-groups "$group"
       fi
     done
   fi
 
   if [[ $ARG_LOCAL == 0 && $ARG_ALL == 1 && ($operation == "stop" || 
$operation == "kill") ]]; then
     debug "Cleaning all server entries in ZooKeeper"
-    debugOrRunAsync "$accumulo_cmd" proc zoo-zap -verbose -managers -tservers 
-compactors -sservers --gc --monitor
+    debugOrRunAsync "$accumulo_cmd" zk zap -verbose -managers -tservers 
-compactors -sservers --gc --monitor
   fi
 
   wait
@@ -672,9 +672,9 @@ function prune_group() {
   esac
 
   if isDebug; then
-    "$accumulo_cmd" proc zoo-zap "$lockTypeOpt" -verbose --include-groups 
"$group" --exclude-host-ports "$exclude_file" --dry-run
+    "$accumulo_cmd" zk zap "$lockTypeOpt" -verbose --include-groups "$group" 
--exclude-host-ports "$exclude_file" --dry-run
   else
-    "$accumulo_cmd" proc zoo-zap "$lockTypeOpt" -verbose --include-groups 
"$group" --exclude-host-ports "$exclude_file"
+    "$accumulo_cmd" zk zap "$lockTypeOpt" -verbose --include-groups "$group" 
--exclude-host-ports "$exclude_file"
   fi
 }
 

Reply via email to