@@ -76,6 +76,7 @@ def __init__(self):
7676 self .jmx_username = None
7777 self .jmx_password = None
7878 self .jmx_passwordfile = None
79+ self .jmx_addlargs = None
7980 self .hosts_variables = dict ()
8081 self .returned_jobs = list ()
8182 self .schema_versions = list ()
@@ -106,7 +107,6 @@ def get_cluster_topology(self, seed_nodes):
106107 for host in seed_nodes :
107108 tried_hosts .append (host )
108109 conn = self ._connection (host )
109-
110110 describe_res = self .run_nodetool (conn , "describecluster" )
111111 status_res = self .run_nodetool (conn , "status" )
112112 if (describe_res .status == 0 ) and (status_res .status == 0 ):
@@ -240,6 +240,9 @@ def run_nodetool(self, conn, *cmds):
240240 jmx_args .extend (["-pw" , self .jmx_password ])
241241 if self .jmx_passwordfile :
242242 jmx_args .extend (["-pwf" , self .jmx_passwordfile ])
243+ if self .jmx_addlargs :
244+ split_jmx_addlargs = self .jmx_addlargs .split ()
245+ jmx_args .extend (split_jmx_addlargs )
243246
244247 return conn .run ((* sudo , "nodetool" , * jmx_args , * cmds ))
245248
@@ -248,7 +251,7 @@ def setup(self, hosts, seeds, command, job_id, strategy, cluster_parallel, dc_pa
248251 ignore_down_nodes , dc_filter ,
249252 sleep_on_new_runner , sleep_after_done ,
250253 ssh_username , ssh_password , ssh_identity_file , ssh_lib ,
251- jmx_username , jmx_password , jmx_passwordfile , resolve_hostnames , hosts_variables ):
254+ jmx_username , jmx_password , jmx_passwordfile , jmx_addlargs , resolve_hostnames , hosts_variables ):
252255
253256 msg ("Starting setup" )
254257
@@ -275,6 +278,7 @@ def setup(self, hosts, seeds, command, job_id, strategy, cluster_parallel, dc_pa
275278 self .jmx_username = jmx_username
276279 self .jmx_password = jmx_password
277280 self .jmx_passwordfile = jmx_passwordfile
281+ self .jmx_addlargs = jmx_addlargs
278282 self .resolve_hostnames = resolve_hostnames
279283 self .hosts_variables = hosts_variables
280284 if not os .path .exists (self .output_directory ):
0 commit comments