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

2
What's your RCP_ADDRESS? can you hit it from localhost? - phact
RPC_ADDRESS is set 0.0.0.0. I cannot run from localhost as well. - Ram
Does cqlsh work? Please drop your output.log - phact
Yes, I can login into cqlsh. - Ram
So this tells me that cassandra is up taking requests and that gossip is active. Nodetool relies on JMX. Can you check if the JMX port is being served up by the dse java process? sudo netstat -tulpn|grep 7199 - phact

2 Answers

2
votes

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.

0
votes

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