2
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="

Ram
  • 324
  • 1
  • 4
  • 21

2 Answers2

2

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.

Kaushal
  • 3,237
  • 3
  • 29
  • 48
0

In cassandra.yaml file it is written that jmx by default will only work from localhost. To run it from a remote host you need to uncomment and provide values of the parameters written in that file. also try

cat /var/lob/cassandra/cassandra.log | grep Error

see if it gives you any error regarding JMX connectivity

Ajak6
  • 727
  • 5
  • 17