I tried Brandon's suggestion, but am still getting the same error on the "remote" server.

Any other suggestions? Is it possible that its a bug?

Thanks,

Shahan

db1a = 192.168.1.13

db1b = 192.168.1.14

=================

 

db1a:~# nodeprobe -host 192.168.1.14 ring

Error connecting to remote JMX agent!

java.rmi.ConnectException: Connection refused to host: 127.0.0.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:153)

        at org.apache.cassandra.tools.NodeProbe.<init>(NodeProbe.java:115)

        at org.apache.cassandra.tools.NodeProbe.main(NodeProbe.java:514)

Caused by: java.net.ConnectException: Connection refused

        at java.net.PlainSocketImpl.socketConnect(Native Method)

        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)

        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)

        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)

        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:381)

        at java.net.Socket.connect(Socket.java:537)

        at java.net.Socket.connect(Socket.java:487)

        at java.net.Socket.<init>(Socket.java:384)

        at java.net.Socket.<init>(Socket.java:198)

        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)

        ... 10 more

 

=======================================================================================

 

db1b:~# nodeprobe -host 192.168.1.14 info

Token(bytes[eaaca3c3bd3caba3e14ee0f85d5cda8a])

Load             : 4 KB

Generation No    : 1266260277

Uptime (seconds) : 9933

Heap Memory (MB) : 54.83 / 1016.13

db1b:~# nodeprobe -host 192.168.1.14 ring

Address       Status     Load          Range                                      Ring

                                       Token(bytes[eaaca3c3bd3caba3e14ee0f85d5cda8a])

192.168.1.13  Up         3.52 KB       Token(bytes[d1deccd61a6632f9040546c5fa57427e])|<--|

192.168.1.14  Up         4 KB          Token(bytes[eaaca3c3bd3caba3e14ee0f85d5cda8a])|-->|

 

On Mon, 15 Feb 2010 13:19:42 -0600, Brandon Williams <driftx@gmail.com> wrote:

On Mon, Feb 15, 2010 at 1:13 PM, Shahan Khan <contact@shahan.me> wrote:

db1b:~# nodeprobe -host db1a ring

Error connecting to remote JMX agent!

java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 

This seems to indicate that db1a resolves as 127.0.0.1 on db1b, when it actually needs to resolve to the 192.168 address.  Try passing the ip address as the host and it should work.
-Brandon