Within the configuration addPath / prependPath is used to ensure nodetool is on the path for the calling command - however if the nodes are specified via a single contact node and not a list of nodes then it attempts to auto-discover the cluster IPs. This is done in the list_cassandra_nodes() function. The function itself does not use the path configuration, and alludes to this. As a result, the liklihood is that if you needed to specify a path in the configuration to access nodetool, then it would also be needed for this part of the process.
# shellcheck disable=SC2086
list_cassandra_nodes() {
# change this if there's an alias, or a full path needs to be specified
nodetoolCmd="nodetool"
It should use the same pathing it's default approach, so that when the path is configured (because nodetool is not on the path) it doesn't fail with a nodetool not found from the this initial step.
Within the configuration addPath / prependPath is used to ensure nodetool is on the path for the calling command - however if the nodes are specified via a single contact node and not a list of nodes then it attempts to auto-discover the cluster IPs. This is done in the list_cassandra_nodes() function. The function itself does not use the path configuration, and alludes to this. As a result, the liklihood is that if you needed to specify a path in the configuration to access nodetool, then it would also be needed for this part of the process.
It should use the same pathing it's default approach, so that when the path is configured (because nodetool is not on the path) it doesn't fail with a nodetool not found from the this initial step.