incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Bowman <ebow...@boboco.ie>
Subject Re: Configuring multiple nodes
Date Sat, 19 Sep 2009 23:46:47 GMT
You can ping 192.168.0.102 from 192.168.0.101, right?

Assuming you can ping, do you see anything different with iptables
turned off?

cheers,
Eric

Chris Were wrote:
> Hi,
>
> I am having issues getting two cassandra instances to communicate.
>
>  - ListenAddress on each machine to their respective public IP addresses.
>  - Seeds has an entry for both public IP addresses.
>  - I have opened up iptables for ports 9160, 7000, 7001, 8888 (not
> sure which ones really need to be opened, so did every port I could see)
>
> Running nodeprobe on 192.168.0.101, looking at it's server ie:
> $ cassandra/bin/nodeprobe -host 192.168.0.101 ring
> Only shows 192.168.0.101
>
> Running nodeprobe on 192.168.0.101, looking at the second server ie:
> $ cassandra/bin/nodeprobe -host 192.168.0.102 ring
> Results in the following error
>
> Error connecting to remote JMX agent!
> java.io.IOException: Failed to retrieve RMIServer stub:
> javax.naming.CommunicationException [Root exception is
> java.rmi.ConnectIOException: Exception creating connection to:
> 192.168.0.102; nested exception is: 
> java.net.NoRouteToHostException: No route to host]
> at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:342)
> at
> javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
> at org.apache.cassandra.tools.NodeProbe.connect(NodeProbe.java:152)
> at org.apache.cassandra.tools.NodeProbe.<init>(NodeProbe.java:114)
> at org.apache.cassandra.tools.NodeProbe.main(NodeProbe.java:545)
> Caused by: javax.naming.CommunicationException [Root exception is
> java.rmi.ConnectIOException: Exception creating connection
> to: 192.168.0.102; nested exception is: 
> java.net.NoRouteToHostException: No route to host]
> at
> com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118)
> at
> com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)
> at javax.naming.InitialContext.lookup(InitialContext.java:409)
> at
> javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1902)
> at
> javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1871)
> at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:276)
> ... 4 more
> Caused by: java.rmi.ConnectIOException: Exception creating connection
> to: 192.168.0.102; nested exception is: 
> java.net.NoRouteToHostException: No route to host
> at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:632)
> 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.newCall(UnicastRef.java:340)
> at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
> at
> com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114)
> ... 9 more
> Caused by: java.net.NoRouteToHostException: No route to host
> 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)
> ... 14 more
>
>
> What have I missed?
>
> Cheers,
> Chris


-- 
Eric Bowman
Boboco Ltd
ebowman@boboco.ie
http://www.boboco.ie/ebowman/pubkey.pgp
+35318394189/+353872801532


Mime
View raw message