Re: RE: Cassandra issue “Unable to gossip with any seeds”
check firewall rules to/from .152 to seed nodes (telnet On Tuesday, July 4, 2017, 6:38:16 AM PDT, Jonathan Baynes wrote: #yiv3228115995 #yiv3228115995 -- _filtered #yiv3228115995 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv3228115995 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv3228115995 #yiv3228115995 p.yiv3228115995MsoNormal, #yiv3228115995 li.yiv3228115995MsoNormal, #yiv3228115995 div.yiv3228115995MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;}#yiv3228115995 a:link, #yiv3228115995 span.yiv3228115995MsoHyperlink {color:blue;text-decoration:underline;}#yiv3228115995 a:visited, #yiv3228115995 span.yiv3228115995MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv3228115995 span.yiv3228115995EmailStyle17 {color:windowtext;}#yiv3228115995 span.yiv3228115995EmailStyle18 {color:#1F497D;}#yiv3228115995 .yiv3228115995MsoChpDefault {font-size:10.0pt;} _filtered #yiv3228115995 {margin:72.0pt 72.0pt 72.0pt 72.0pt;}#yiv3228115995 div.yiv3228115995WordSection1 {}#yiv3228115995 Hi Bhargav I had this recently when making changes to a cluster, and It was down to the Listen_address & broadcast_address. Check your cassandra.yaml and make sure that your listen_address/broadcast_address and "seeds" values match. Make sure the Data folder is empty as well. I would go through your yaml, be diligent its there that is the problem. Thanks J From: Mokkapati, Bhargav (Nokia - IN/Chennai) [mailto:bhargav.mokkap...@nokia.com] Sent: 04 July 2017 14:00 To: user@cassandra.apache.org Subject: Cassandra issue “Unable to gossip with any seeds” Hi Team, I am getting the below issue when I started a node. “Unable to gossip with any seeds” I am using Apache Cassandra 3.0.6 version. I have 5 nodes in the cluster,10.50.20.151 , 10.50.20.152 , 10.50.20.153 , 10.50.20.154 , 10.50.20.155 Seed nodes - 10.50.20.153 , 10.50.20.154 , 10.50.20.155 All the nodes have same Cassandra.yaml configuration file I am getting this issue only in node2 (10.50.20.152). It didn’t even joined the cluster. Also node2 is pinging from seed nodes and vice versa. Please let me know if any of you have faced the same issue and found the solution. Thank you very much Regards, Bhargav This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy it. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Tradeweb reserves the right to monitor all e-mail communications through its networks. If you do not wish to receive marketing emails about our products / services, please let us know by contacting us, either by email at contac...@tradeweb.com or by writing to us at the registered office of Tradeweb in the UK, which is: Tradeweb Europe Limited (company number 3912826), 1 Fore Street Avenue London EC2Y 9DT. To see our privacy policy, visit our website @ www.tradeweb.com. - To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org For additional commands, e-mail: user-h...@cassandra.apache.org
RE: Cassandra issue “Unable to gossip with any seeds”
Hi Bhargav I had this recently when making changes to a cluster, and It was down to the Listen_address & broadcast_address. Check your cassandra.yaml and make sure that your listen_address/broadcast_address and "seeds" values match. Make sure the Data folder is empty as well. I would go through your yaml, be diligent its there that is the problem. Thanks J From: Mokkapati, Bhargav (Nokia - IN/Chennai) [mailto:bhargav.mokkap...@nokia.com] Sent: 04 July 2017 14:00 To: user@cassandra.apache.org Subject: Cassandra issue “Unable to gossip with any seeds” Hi Team, I am getting the below issue when I started a node. “Unable to gossip with any seeds” [cid:image001.jpg@01D2F4D3.1E74E5E0] I am using Apache Cassandra 3.0.6 version. I have 5 nodes in the cluster,10.50.20.151 , 10.50.20.152 , 10.50.20.153 , 10.50.20.154 , 10.50.20.155 Seed nodes - 10.50.20.153 , 10.50.20.154 , 10.50.20.155 All the nodes have same Cassandra.yaml configuration file I am getting this issue only in node2 (10.50.20.152). It didn’t even joined the cluster. [cid:image002.png@01D2F4D3.1E74E5E0] Also node2 is pinging from seed nodes and vice versa. [cid:image003.png@01D2F4D3.1E74E5E0] Please let me know if any of you have faced the same issue and found the solution. Thank you very much Regards, Bhargav This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy it. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Tradeweb reserves the right to monitor all e-mail communications through its networks. If you do not wish to receive marketing emails about our products / services, please let us know by contacting us, either by email at contac...@tradeweb.com or by writing to us at the registered office of Tradeweb in the UK, which is: Tradeweb Europe Limited (company number 3912826), 1 Fore Street Avenue London EC2Y 9DT. To see our privacy policy, visit our website @ www.tradeweb.com.
Cassandra issue “Unable to gossip with any seeds”
Hi Team, I am getting the below issue when I started a node. “Unable to gossip with any seeds” [cid:image003.jpg@01D2F4F3.8B790480] I am using Apache Cassandra 3.0.6 version. I have 5 nodes in the cluster,10.50.20.151 , 10.50.20.152 , 10.50.20.153 , 10.50.20.154 , 10.50.20.155 Seed nodes - 10.50.20.153 , 10.50.20.154 , 10.50.20.155 All the nodes have same Cassandra.yaml configuration file I am getting this issue only in node2 (10.50.20.152). It didn’t even joined the cluster. [cid:image004.png@01D2F4F1.9773CC90] Also node2 is pinging from seed nodes and vice versa. [cid:image005.png@01D2F4F2.4B7CAA90] Please let me know if any of you have faced the same issue and found the solution. Thank you very much Regards, Bhargav
Re: 2.0.10 upgrade to 2.1.2 gives "Unable to gossip with any seeds"
Check if u have rpc_server = hsha .. Change it to sync and try .. Sent from my iPhone On Dec 4, 2014, at 3:55 PM, sinonim wrote: Hi all, We have the case of a cassandra cluster with nodes version 2.0.10, all in a single EC2 region. We want to perform a rolling upgrade to version 2.1.2 but the new node has the following exceptions: java.lang.RuntimeException: Unable to gossip with any seeds at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1222) ~[apache-cassandra-2.1.2.jar:2.1.2] Any ideas? The listen, rpc and seed addresses are the right ones. Thank you.
2.0.10 upgrade to 2.1.2 gives "Unable to gossip with any seeds"
Hi all, We have the case of a cassandra cluster with nodes version 2.0.10, all in a single EC2 region. We want to perform a rolling upgrade to version 2.1.2 but the new node has the following exceptions: java.lang.RuntimeException: Unable to gossip with any seeds at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1222) ~[apache-cassandra-2.1.2.jar:2.1.2] Any ideas? The listen, rpc and seed addresses are the right ones. Thank you.
Re: New node Unable to gossip with any seeds
This generally means that how you are describing the see nodes address doesn't match how it's described in the second node seeds list in the correct way. CASSANDRA-6523 has some links that might be helpful. On 05/26/2014 12:07 AM, Tim Dunphy wrote: Hello, I am trying to spin up a new node using cassandra 2.0.7. Both nodes are at Digital Ocean. The seed node is up and running and I can telnet to port 7000 on that host from the node I'm trying to start. [root@cassandra02 apache-cassandra-2.0.7]# telnet 10.10.1.94 7000 Trying 10.10.1.94... Connected to 10.10.1.94. Escape character is '^]'. But when I start cassandra on the new node I see the following exception: INFO 00:01:34,744 Handshaking version with /10.10.1.94 ERROR 00:02:05,733 Exception encountered during startup java.lang.RuntimeException: Unable to gossip with any seeds at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1193) at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:447) at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:656) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:612) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:505) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:362) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:480) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:569) java.lang.RuntimeException: Unable to gossip with any seeds at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1193) at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:447) at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:656) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:612) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:505) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:362) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:480) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:569) Exception encountered during startup: Unable to gossip with any seeds ERROR 00:02:05,742 Exception in thread Thread[StorageServiceShutdownHook,5,main] java.lang.NullPointerException at org.apache.cassandra.gms.Gossiper.stop(Gossiper.java:1270) at org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:573) at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) at java.lang.Thread.run(Thread.java:745) I'm using the murmur3 partition on both nodes and I have the seed node's IP listed in the cassandra.yaml of the new node. I'm just wondering what the issue might be and how I can get around it. Thanks Tim
New node Unable to gossip with any seeds
Hello, I am trying to spin up a new node using cassandra 2.0.7. Both nodes are at Digital Ocean. The seed node is up and running and I can telnet to port 7000 on that host from the node I'm trying to start. [root@cassandra02 apache-cassandra-2.0.7]# telnet 10.10.1.94 7000 Trying 10.10.1.94... Connected to 10.10.1.94. Escape character is '^]'. But when I start cassandra on the new node I see the following exception: INFO 00:01:34,744 Handshaking version with /10.10.1.94 ERROR 00:02:05,733 Exception encountered during startup java.lang.RuntimeException: Unable to gossip with any seeds at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1193) at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:447) at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:656) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:612) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:505) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:362) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:480) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:569) java.lang.RuntimeException: Unable to gossip with any seeds at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1193) at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:447) at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:656) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:612) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:505) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:362) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:480) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:569) Exception encountered during startup: Unable to gossip with any seeds ERROR 00:02:05,742 Exception in thread Thread[StorageServiceShutdownHook,5,main] java.lang.NullPointerException at org.apache.cassandra.gms.Gossiper.stop(Gossiper.java:1270) at org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:573) at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) at java.lang.Thread.run(Thread.java:745) I'm using the murmur3 partition on both nodes and I have the seed node's IP listed in the cassandra.yaml of the new node. I'm just wondering what the issue might be and how I can get around it. Thanks Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
Re: Fwd: Unable to gossip with any seeds
Hi Ilya, On 03/02/14 10:49, Ilya Sviridov wrote: Hello Sundeep It seems that in both configs of your nodes you are using the same hosname as seeds value. You have to enumerate all nodes in your cluster. not so! If all nodes N1, N2, ... use the same node N0 as a seed, then by gossiping with N0 they discover the existence of all the other nodes, because N0 tells them about them. The problem with only using one seed node is: what if N0 is down when you start a new node? Ciao, Duncan. Best wishes, Ilya On Feb 3, 2014 10:47 AM, "Sundeep Kambhampati" mailto:satyasunde...@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 <http://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
Re: Fwd: Unable to gossip with any seeds
Hello Sundeep It seems that in both configs of your nodes you are using the same hosname as seeds value. You have to enumerate all nodes in your cluster. Best wishes, Ilya On Feb 3, 2014 10:47 AM, "Sundeep Kambhampati" 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 > TokenRack > UN 10.0.2.1 35.8 KB100.0% > 0ae766db-fcb5-481b-8120-550b672fa9e7 0 > 2 > > > Can some please help me fixing this error? > > > Thank you, > Sundeep > > >
Re: Unable to gossip with any seeds
Thank you Chiru for the reply. I am configuring single datacenter. I changed it to SimpleSnitch. However, I am getting the same error. -Sundeep On Mon, Feb 3, 2014 at 3:58 AM, Chiranjeevi Ravilla wrote: > 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 > 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 > TokenRack > UN 10.0.2.1 35.8 KB100.0% > 0ae766db-fcb5-481b-8120-550b672fa9e7 0 > 2 > > > Can some please help me fixing this error? > > > Thank you, > Sundeep > > > >
Fwd: Unable to gossip with any seeds
Same problem here. But in my case the same configuration does start up when I just retry it a second time. Some more info on my specific configuration : Environment : linux, cassandra 2.0.4, 3 node, embedded, byte ordered, LCS When I add a node to the existing 3 node cluster I sometimes get the exception 'Unable to gossip with any seeds ' listed below. If I just restart it without any change then mostly it works. Must be some timing issue. The Cassandra at that time is configured using the Cassandra.yaml file with the auto_bootstrap set true and the initial_token set to something like : 00f35256, 041e692a, 0562d8b2, 0930274a, 0b16ce96, 0c5b3e1e, 10cac47a, 12b16bc6, 13f5db4e, 186561aa, 1907996e, 1c32b042, 1e19578e .. The two seeds configured in this yaml are 10.164.8.250 and 10.164.8.249 and these are up and running. The new node to add has ip 10.164.8.93 At the time of the exception, I do not get the gossip message 'Handshaking version with /10.164.8.93' on the seeds. If the exception does not occurs, then I do get that gossip message 'Handshaking version with /10.164.8.93' on the seed 2014-01-31 13:40:36.380 Loading persisted ring state 2014-01-31 13:40:36.386 Starting Messaging Service on port 9804 2014-01-31 13:40:36.408 Handshaking version with /10.164.8.250 2014-01-31 13:40:36.408 Handshaking version with /10.164.8.249 2014-01-31 13:41:07.415 Exception encountered during startup java.lang.RuntimeException: Unable to gossip with any seeds at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1160) ~[apache-cassandra-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:426) ~[apache-cassandra-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:618) ~[apache-cassandra-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] at org.apache.cassandra.service.StorageService.initServer(StorageService.java:586) ~[apache-cassandra-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] at org.apache.cassandra.service.StorageService.initServer(StorageService.java:485) ~[apache-cassandra-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:346) ~[apache-cassandra-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:461) ~[apache-cassandra-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] at be.landc.services.search.server.db.baseserver.indexsearch.store.cassandra.CassandraStore$CassThread.startUpCassandra(CassandraStore.java:469) [landc-services-search-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT-87937] at be.landc.services.search.server.db.baseserver.indexsearch.store.cassandra.CassandraStore$CassThread.run(CassandraStore.java:460) [landc-services-search-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT-87937] 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 be.landc.services.search.server.db.baseserver.indexsearch.store.cassandra.CassandraStore$CassThread.startUpCassandra(CassandraStore.java:469) at be.landc.services.search.server.db.baseserver.indexsearch.store.cassandra.CassandraStore$CassThread.run(CassandraStore.java:460) Exception encountered during startup: Unable to gossip with any seeds 2014-01-31 13:41:07.419 Exception in thread Thread[StorageServiceShutdownHook,5,main] java.lang.NullPointerException: null at org.apache.cassandra.service.StorageService.stopNativeTransport(StorageService.java:349) ~[apache-cassandra-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] at org.apache.cassandra.service.StorageService.shutdownClientServers(StorageService.java:364) ~[apache-cassandra-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] at org.apache.cassandra.service.StorageService.access$3(StorageService.java:361) ~[apache-cassandra-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] at org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:551) ~[apache-cassandra-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] at org.apache.cassa
Re: Unable to gossip with any seeds
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 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 >TokenRack > UN 10.0.2.1 35.8 KB100.0% > 0ae766db-fcb5-481b-8120-550b672fa9e7 0 > 2 > > > Can some please help me fixing this error? > > > Thank you, > Sundeep > >
Fwd: Unable to gossip with any seeds
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 TokenRack UN 10.0.2.1 35.8 KB100.0% 0ae766db-fcb5-481b-8120-550b672fa9e7 0 2 Can some please help me fixing this error? Thank you, Sundeep