Cassandra-nodetool在另一台机器上不工作吗?

| 我在4个节点上有一个cassandra集群(每个节点都运行ubuntu 10.04和cassandra 0.7.4)。 所有节点均使用SWITCH进行连接,并且为每个节点分配了STATIC IP地址(不涉及DNS)。 该节点似乎运行正常(状态为\'Normal \',所有节点均处于启动状态,等等)。 问题是:
nodetool
有效,但仅当
nodetool
命令在同一节点上运行时才有效。当我尝试在STATIC_IP = 192.168.0.4上从STATIC_IP = 192.168.0.253运行ѭ0时,出现以下错误: (注意:机器\'s3789 \'的静态IP为192.168.0.253)
user@s3789:/opt/cassandra/apache-cassandra-0.7.4$      bin/nodetool -host 192.168.0.4 ring
Error connection to remote JMX agent!
java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is: 
    java.net.ConnectException: Connection refused
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:128)
    at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
    at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2343)
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:296)
    at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
    at org.apache.cassandra.tools.NodeProbe.connect(NodeProbe.java:137)
    at org.apache.cassandra.tools.NodeProbe.<init>(NodeProbe.java:107)
    at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:511)
Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
    at java.net.Socket.connect(Socket.java:546)
    at java.net.Socket.connect(Socket.java:495)
    at java.net.Socket.<init>(Socket.java:392)
    at java.net.Socket.<init>(Socket.java:206)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:146)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
任何提示如何解决这个问题?     
已邀请:
来自conf / cassandra-env.sh:
# add this if you\'re having trouble connecting:
# JVM_OPTS=\"$JVM_OPTS -Djava.rmi.server.hostname=<public name>\"
# 
# see 
# https://blogs.oracle.com/jmxetc/entry/troubleshooting_connection_problems_in_jconsole
# for more on configuring JMX through firewalls, etc. (Short version:
# get it working with no firewall first.)
    
启动服务器之前,请检查是否已启动rmiregistry
rmiregistry &
RMI入门     

要回复问题请先登录注册