I am writing a small bash shell script to help automating my tasks on Nutanix system.
This script is quite simple as it will send some remote commands via SSH to Nutanix CVM and host to get the value back.
All seems running well except for the nodetool script.
When I run the below command, I get the error just like this:
"Error: Could not find or load main class org.apache.cassandra.tools.NodeCmd"ssh firstname.lastname@example.org "/usr/local/nutanix/apache-cassandra/bin/nodetool -h localhost ring"
I have tried some work arounds but there is no hint at all to find a way to make it run as expected.
How can I deal with this?