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 09624d5c4d Modified accumulo-cluster to print msg when exiting (#6091)
09624d5c4d is described below
commit 09624d5c4d8515d176aee3e12f819701f38cac87
Author: Dave Marion <[email protected]>
AuthorDate: Fri Jan 30 08:09:30 2026 -0500
Modified accumulo-cluster to print msg when exiting (#6091)
---
assemble/bin/accumulo-cluster | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/assemble/bin/accumulo-cluster b/assemble/bin/accumulo-cluster
index f2c5b12ee5..1e97902be0 100755
--- a/assemble/bin/accumulo-cluster
+++ b/assemble/bin/accumulo-cluster
@@ -299,7 +299,7 @@ function parse_config() {
exit 1
fi
- AC_TMP_DIR=$(mktemp -t -d "accumulo-cluster-XXXXXXXX") || exit 1
+ AC_TMP_DIR=$(mktemp -t -d "accumulo-cluster-XXXXXXXX") || (echo "Error
creating temp file" && exit 1)
if isDebug; then
echo "$(blue DEBUG): Temporary files for this run are in $AC_TMP_DIR"
else
@@ -308,7 +308,7 @@ function parse_config() {
RG_FILE="$AC_TMP_DIR/ZooInfoViewer.out"
debug "Printing resource groups to $RG_FILE"
- "$accumulo_cmd" zoo-info-viewer --print-resource-groups >"$RG_FILE" || exit 1
+ "$accumulo_cmd" zoo-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[*]}"
@@ -720,7 +720,7 @@ function prune() {
exit 1
fi
local service_json="$AC_TMP_DIR/accumulo-service.json"
- "$accumulo_cmd" admin serviceStatus --json >"$service_json" 2>/dev/null ||
exit 1
+ "$accumulo_cmd" admin serviceStatus --json >"$service_json" 2>/dev/null ||
(echo "Error calling 'admin serviceStatus'" && exit 1)
local var_name
local hosts