incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chiranjeevi Ravilla <rccassandr...@gmail.com>
Subject Re: Unable to gossip with any seeds
Date Mon, 03 Feb 2014 08:58:26 GMT
Hi Sundeep,

Can you please confirm, are you configuring two nodes in different Datacenters?

If you are configuring on single datacenter with two nodes,then please change the endpoint_snitch
 from  RackInferringSnitch to SimpleSnitch and restart the clusters.

Regards,
Chiru

On 03-Feb-2014, at 2:17 PM, Sundeep Kambhampati <satyasundeepk@gmail.com> wrote:

> Hi,
> 
> I am trying to setup multi-node Cassandra cluster (2 nodes). I am using apache-cassandra-2.0.4.
I am able to start Cassandra on the seed node. But, when I am trying to start it on the other
node it starts and fails in few seconds. I can see the following in my error log: 
> 
> "ERROR 03:23:56,915 Exception encountered during startup
> java.lang.RuntimeException: Unable to gossip with any seeds "
> 
> 
> I am able to telnet from node 1 to node 0.
> 
> telnet 10.2.252.0 9000
> Trying 10.2.252.0...
> Connected to 10.2.252.0.
> Escape character is '^]'.
> ^]
> Connection closed by foreign host.
>  
> 
> cassandra.yaml
> 
> node 0: (sk.r252.0)(seed) 
> 
> cluster_name: 'DataCluster'
> num_tokens: 256
> initial_token: 0
> seeds: "sk.r252.0"
> storage_port: 9000
> ssl_storage_port: 9001
> listen_address: sk.r252.0
> rpc_address: 0.0.0.0
> rpc_port: 8192
> endpoint_snitch: RackInferringSnitch
> 
> node 1: (sk.r252.1) 
> cluster_name: 'DataCluster'
> num_tokens: 256
> initial_token: 4611686018427387904
> seeds: "sk.r252.0"
> storage_port: 9000
> ssl_storage_port: 9001
> listen_address: sk.r252.1
> rpc_address: 0.0.0.0
> rpc_port: 8192
> endpoint_snitch: RackInferringSnitch
> 
> 
> When I am trying to start Cassandra on node 1 it fails and the log shows:
> 
>  INFO 03:23:25,284 Loading persisted ring state
>  INFO 03:23:25,564 Starting Messaging Service on port 9000
>  INFO 03:23:25,797 Handshaking version with sk.r252.0/10.2.252.0
> ERROR 03:23:56,915 Exception encountered during startup
> java.lang.RuntimeException: Unable to gossip with any seeds
>         at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1160)
>         at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:426)
>         at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:618)
>         at org.apache.cassandra.service.StorageService.initServer(StorageService.java:586)
>         at org.apache.cassandra.service.StorageService.initServer(StorageService.java:485)
>         at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:346)
>         at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:461)
>         at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:504)
> java.lang.RuntimeException: Unable to gossip with any seeds
>         at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1160)
>         at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:426)
>         at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:618)
>         at org.apache.cassandra.service.StorageService.initServer(StorageService.java:586)
>         at org.apache.cassandra.service.StorageService.initServer(StorageService.java:485)
>         at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:346)
>         at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:461)
>         at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:504)
> Exception encountered during startup: Unable to gossip with any seeds
> ERROR 03:24:02,213 Exception in thread Thread[StorageServiceShutdownHook,5,main]
> java.lang.NullPointerException
>         at org.apache.cassandra.service.StorageService.stopNativeTransport(StorageService.java:349)
>         at org.apache.cassandra.service.StorageService.shutdownClientServers(StorageService.java:364)
>         at org.apache.cassandra.service.StorageService.access$000(StorageService.java:97)
>         at org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:551)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>         at java.lang.Thread.run(Unknown Source)
> 
> bin/nodetool status
> 
> 
> Datacenter: 0
> =============
> Status=Up/Down
> |/ State=Normal/Leaving/Joining/Moving
> --  Address   Load       Owns (effective)  Host ID                               Token
                                   Rack
> UN  10.0.2.1  35.8 KB    100.0%            0ae766db-fcb5-481b-8120-550b672fa9e7  0  
                                     2
> 
> 
> Can some please help me fixing this error? 
> 
> 
> Thank you,
> Sundeep
> 
> 


Mime
View raw message