卡桑德拉没有出发

时间:2014-09-29 09:20:48

标签: cassandra cassandra-2.0 datastax

我在AWS上使用3节点Cassandra集群时遇到问题。 有一个种子节点和两个数据节点。节点崩溃了 当它们被启动时以及我试图手动启动它们时。

错误消息显示在所有三个节点中。

Cassandra的版本是2.0.9

我尝试过以下设置:

- class_name: org.apache.cassandra.locator.SimpleSeedProvider
  parameters:
      - seeds: "<seed.node.public.IP>"

rpc_address: <node.public.IP>

rpc_port: 9160

listen_address: (or with the node's public IP)

storage_port: 7000

endpoint_snitch: SimpleSnitch (and RackInferringSnitch as well).

错误消息是

 ERROR [main] 2014-09-29 08:59:45,241 CassandraDaemon.java (line 513) Exception  encountered during startup
 java.lang.RuntimeException: Unable to gossip with any seeds
  at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1200)
  at org.apache.cassandra.service.StorageService.checkForEndpointCollision   (StorageService.java:446)
  at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:657)
  at org.apache.cassandra.service.StorageService.initServer(StorageService.java:611)
  at org.apache.cassandra.service.StorageService.initServer(StorageService.java:504)
  at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:378)
  at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:496)
  at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:585)

Ports 7000,7001,7199,8080,9042,9160,61620和61621在群集的安全组中打开。

我也阅读并尝试了以下链接中提供的解决方案:

Cassandra Not Starting Up

Starting cassandra as a service does not work for 2.0.5, sudo cassandra -f works

Apache Cassandra: Unable to gossip with any seeds

Datastax Enterprise is crashing with Unable to gossip with any seeds error

https://github.com/Netflix/Priam/issues/313

1 个答案:

答案 0 :(得分:3)

Cassandra无法绑定到EC2中的公共IP地址

使用公共DNS 私有IP地址替换它 在 listen_address rpc_address 种子

公共DNS正在解析为私有IP地址 关于EC2实例的eth0 intherface,Cassandra具有约束力。

工作配置为:

- class_name: org.apache.cassandra.locator.SimpleSeedProvider
  parameters:
     - seeds: "<seed.node.public.DNS>"

  rpc_address: <node.public.DNS>

  rpc_port: 9160

  listen_address: (or with the node's public DNS)

  storage_port: 7000

  endpoint_snitch: SimpleSnitch (and RackInferringSnitch as well).