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

4

2 回答 2

2

您必须使用您的listen_address 作为nodetool 主机IP。

nodetool -h <listen_address> -p 7199 status

或者如果它不起作用,请尝试使用sudo.

于 2015-03-18T09:06:48.020 回答
0

在 cassandra.yaml 文件中写到 jmx 默认只能在 localhost 中工作。要从远程主机运行它,您需要取消注释并提供写入该文件的参数值。也试试

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

看看它是否给你关于 JMX 连接的任何错误

于 2015-12-10T07:36:47.330 回答