开发者社区> 问答> 正文

关于Cassandra集群配置的问题

想要配置一个多数据中心的Cassandra集群 A,B在不同局域网

机器A seeds: a的public ip listen_address: a的private ip broadcast_address: a的public ip rpc_address: 0.0.0.0 broadcast_rpc_address: a的public ip endpoint_snitch: GossipingPropertyFileSnitch

机器B seeds: a的public ip listen_address: b的private ip broadcast_address: b的public ip rpc_address: 0.0.0.0 broadcast_rpc_address: b的public ip endpoint_snitch: GossipingPropertyFileSnitch

A,B的机架信心和数据中心信息已经在cassandra-rackdc.properties中配置

机器A能够正常启动 机器B启动时会出错 Exception (java.lang.RuntimeException) encountered during startup: Unable to gossip with any peers java.lang.RuntimeException: Unable to gossip with any peers at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1530) at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:585) at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:843) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:702) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:651) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:388) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:620) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:742) ERROR [main] 2019-11-13 15:26:32,807 CassandraDaemon.java:759 - Exception encountered during startup java.lang.RuntimeException: Unable to gossip with any peers at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1530) ~[apache-cassandra-3.11.5.jar:3.11.5] at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:585) ~[apache-cassandra-3.11.5.jar:3.11.5] at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:843) ~[apache-cassandra-3.11.5.jar:3.11.5] at org.apache.cassandra.service.StorageService.initServer(StorageService.java:702) ~[apache-cassandra-3.11.5.jar:3.11.5] at org.apache.cassandra.service.StorageService.initServer(StorageService.java:651) ~[apache-cassandra-3.11.5.jar:3.11.5] at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:388) [apache-cassandra-3.11.5.jar:3.11.5] at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:620) [apache-cassandra-3.11.5.jar:3.11.5] at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:742) [apache-cassandra-3.11.5.jar:3.11.5]

请问哪里出错了?

展开
收起
游客mkssucsidh6r4 2019-11-13 15:47:36 2203 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
HBase 高可用HA 立即下载
HBase 应用与高可用实践 立即下载
Cassandra 立即下载