incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Why can't you manage one node from another?
Date Wed, 07 Apr 2010 19:28:06 GMT
looks like you are running into http://wiki.apache.org/cassandra/JmxGotchas

On Wed, Apr 7, 2010 at 2:21 PM, Mark Jones <MJones@imagehawk.com> wrote:
> I have 3 nodes in the cluster, and
>    bin/nodetool --host this-host-name ring
> Works as expected, but
>    bin/nodetool --host some-other-host ring
>
> always throws this exception:
>
> Error connecting 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:105)
>        at org.apache.cassandra.tools.NodeProbe.<init>(NodeProbe.java:81)
>        at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:404)
> 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:384)
>        at java.net.Socket.connect(Socket.java:542)
>        at java.net.Socket.connect(Socket.java:492)
>        at java.net.Socket.<init>(Socket.java:389)
>        at java.net.Socket.<init>(Socket.java:203)
>        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
>
>
> My hosts file looks like:
>
> 127.0.0.1       localhost
> 127.0.1.1       ec1
>
> # The following lines are desirable for IPv6 capable hosts
> ::1     localhost ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
>

Mime
View raw message