Unable to run nodetool on remote and local server in cassandra

Ram picture Ram · Mar 12, 2015 · Viewed 8.5k times · Source
nodetool -h <ipaddress> -p 7199 status
Error connecting to remote Jmx agent!
java.rmi.NoSuchObectException: no such object in the table

Am getting the above error when I tried to run the nodetool status or any other nodetool command. Cassandra is running fine and nodetool status on other nodes in the cluster shows it is UN state. I tried to add the below entry in cassandra-env.sh file but still I got the same error

JVM_OPTS = "$JVM_OPTS -Djava.rmi.server.hostname="

Answer

Kaushal picture Kaushal · Mar 18, 2015

You have to use your listen_address for nodetool host ip.

nodetool -h <listen_address> -p 7199 status

or if it is not working, try with sudo.