Exception 未加入Cassandra Cluster 2.1.0的节点
我有两台fedora linux服务器通过交换机连接。Exception 未加入Cassandra Cluster 2.1.0的节点,exception,cassandra,cluster-computing,Exception,Cassandra,Cluster Computing,我有两台fedora linux服务器通过交换机连接。 在192.168.5.1机器一上,cassandra.yaml- - seeds: "192.168.5.1" listen_address: 192.168.5.1 rpc_address: 192.168.5.1 在192.168.5.2机器2上,卡桑德拉·亚马尔- - seeds: "192.168.5.1" listen_address: 192.168.5.2 rpc_address: 192.168.5.2 卡桑德拉在一号机
在192.168.5.1机器一上,cassandra.yaml-
- seeds: "192.168.5.1"
listen_address: 192.168.5.1
rpc_address: 192.168.5.1
在192.168.5.2机器2上,卡桑德拉·亚马尔-
- seeds: "192.168.5.1"
listen_address: 192.168.5.2
rpc_address: 192.168.5.2
卡桑德拉在一号机器上启动。很好。在机器2上启动Cassandra失败,出现以下错误-
ERROR [main] 2014-10-14 22:42:19,272 CassandraDaemon.java:474 - Exception encountered during startup
java.lang.RuntimeException: Unable to gossip with any seeds
at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1200) ~[apache-cassandra-2.1.0.jar:2.1.0]
at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:451) ~[apache-
两台机器都通过交换机连接,我可以通过IP地址相互ping。netstat-机器1上的nr-
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlp0s45f8u2
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp0s45f8u2
192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0 em1
netstat-机器2上的nr-
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0 em1
你们有运行防火墙吗?看起来很像:我同意这可能是防火墙的问题,我会测试和更新。感谢您的输入。这是防火墙问题,一旦我打开了所有必需的端口,两个节点都可以很好地加入集群。谢谢你们两位。