nodetool -h <ipaddress> -p 7199 status
Error connecting to remote Jmx agent!
java.rmi.NoSuchObectException: no such object in the table
当我尝试运行 nodetool status 或任何其他 nodetool 命令时出现上述错误。Cassandra 运行良好,集群中其他节点上的 nodetool 状态显示它是 UN 状态。我尝试在 cassandra-env.sh 文件中添加以下条目,但仍然出现相同的错误
JVM_OPTS = "$JVM_OPTS -Djava.rmi.server.hostname="