我有两个与交换机连接的fedora linux服务器 在192.168.5.1 Machine One上,cassandra.yaml -
- seeds: "192.168.5.1"
listen_address: 192.168.5.1
rpc_address: 192.168.5.1
On 192.168.5.2 Machine Two,cassandra.yaml -
- seeds: "192.168.5.1"
listen_address: 192.168.5.2
rpc_address: 192.168.5.2
Cassandra在Machine One上开始罚款
在机器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通 Machine1上的netstat -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
在Machine2上netstat -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