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

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


The following commit(s) were added to refs/heads/main by this push:
     new b2b26da  Allow separate datanode hosts for agitator (#317)
b2b26da is described below

commit b2b26da3ae24814825a2d254cf4050edf68335ef
Author: Dom G. <[email protected]>
AuthorDate: Wed Sep 16 11:15:48 2026 -0400

    Allow separate datanode hosts for agitator (#317)
---
 bin/agitator | 3 ++-
 conf/env.sh  | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/agitator b/bin/agitator
index a4fbe97..6d21347 100755
--- a/bin/agitator
+++ b/bin/agitator
@@ -203,7 +203,8 @@ function read_cluster_conf() {
 function get_app_hosts() {
   case "$1" in
     manager) echo -n "$MANAGER_HOSTS" ;;
-    tserver | datanode) echo -n "$TSERVER_HOSTS" ;;
+    tserver) echo -n "$TSERVER_HOSTS" ;;
+    datanode) echo -n "${AGTR_DATANODE_HOSTS:-$TSERVER_HOSTS}" ;;
     *) return 1 ;;
   esac
 }
diff --git a/conf/env.sh b/conf/env.sh
index c16066c..92bcf32 100644
--- a/conf/env.sh
+++ b/conf/env.sh
@@ -107,6 +107,8 @@ export AGTR_DATANODE_RESTART_SLEEP_TIME=10
 # Min and max number of datanodes the agitator will kill at once
 export AGTR_DATANODE_MIN_KILL=1
 export AGTR_DATANODE_MAX_KILL=1
+# Datanode hosts if different from tservers
+#export AGTR_DATANODE_HOSTS="host1 host2"
 # HDFS agitation
 AGTR_HDFS_USER=$(whoami)
 export AGTR_HDFS_USER

Reply via email to