From 186294dd202b63904281b99f37e3a21d0b1285bc Mon Sep 17 00:00:00 2001 From: Dave Marion Date: Fri, 6 Dec 2024 11:40:24 -0500 Subject: [PATCH] Refactor and simplification of accumulo-cluster (#5116) Modified argument parsing logic to use getopt which provides more flexibility to specify multiple options and allow options to have optional arguments. This allowed me to remove start-servers and stop-servers and use options to start and stop instead. See usage for details to api changes. Modified command execution such that ssh is used, even locally, for commands unless --local is specified. --- assemble/bin/accumulo-cluster | 782 +++++++++++++--------------------- 1 file changed, 290 insertions(+), 492 deletions(-) diff --git a/assemble/bin/accumulo-cluster b/assemble/bin/accumulo-cluster index cd80d7cb0d9..225ab2fd72e 100755 --- a/assemble/bin/accumulo-cluster +++ b/assemble/bin/accumulo-cluster @@ -18,6 +18,14 @@ # under the License. # +# +# Environment variables that can be set to influence the behavior +# of this script +# +# ACCUMULO_LOCALHOST_ADDRESSES - set to a space delimited string of localhost names +# and addresses to override the default lookups +# + function print_usage { cat < ( ...) [