Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Cassandra: Unable to gossip with any seeds

I have built Cassandra server 2.0.3, then run it. It is starting and then stopped with messages:

X:\MyProjects\cassandra\apache-cassandra-2.0.3-src\bin>cassandra.bat >log.txt 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:416)         at org.apache.cassandra.service.StorageService.joinTokenRing(StorageServ ice.java:608)         at org.apache.cassandra.service.StorageService.initServer(StorageService .java:576)         at org.apache.cassandra.service.StorageService.initServer(StorageService .java:475)         at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.ja va:346)         at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon .java:461)         at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.jav a:504) 

What I can change to run it?

like image 538
ZedZip Avatar asked Dec 19 '13 20:12

ZedZip


People also ask

How does gossip work in Cassandra?

Cassandra uses a protocol called gossip to discover location and state information about the other nodes participating in a Cassandra cluster. Gossip is a peer-to-peer communication protocol in which nodes periodically exchange state information about themselves and about other nodes they know about.

What are Cassandra seeds?

A seed node is used to bootstrap the gossip process for new nodes joining a cluster. To learn the topology of the ring, a joining node contacts one of the nodes in the -seeds list in cassandra. yaml. The first time you bring up a node in a new cluster, only one node is the seed node.

How Cassandra nodes communicate with each other?

In Cassandra all nodes communicating with each other via a gossip protocol. Gossip is the message system that Cassandra node use to make their data consistent with each other.


2 Answers

I had a similar problem with my cassandra v2.0.4 cluster running a single node.

Check your cassandra.yaml and make sure that your "listen_address" and "seeds" values match, with the exception that the seeds value requires quotes around it.

like image 57
Mark W Avatar answered Sep 19 '22 14:09

Mark W


You might get this problem if your private IP address is different than the public one (like on AWS). For example, the host thinks it's "172.31.0.2" when it's visible as "55.70.33.10".

The solution to this problem is:

listen_address: 172.31.0.2 broadcast_address: 55.70.33.10 
like image 24
Lukasz Kujawa Avatar answered Sep 19 '22 14:09

Lukasz Kujawa