即使所有节点都已启动并运行,集群中的某些 cassandra 节点仍无法访问
我在 ec2 上有 6 个节点的 cassandra 集群,很多时候我观察到集群中的所有节点都已启动并正在运行,但是当我从客户端执行描述集群时,它显示某些节点无法访问。
我可以登录到单独的计算机
可以使用 cassandra 客户端连接到 cassandra 节点
可以连接到单独的节点使用 JMX。
I have cassandra cluster of 6 nodes on ec2 , Many times i have observed that all the nodes in the cluster are up and running but when i do the describe cluster from client it shows some nodes as unreachable.
I can login to individual machines
can connect to cassandra node with cassandra client
can connect to individual nodes with JMX.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来你的listen_address/broadcast_address配置错误。
sounds like you have listen_address/broadcast_address misconfigured.
我正在使用 hector 作为 Cassandra 客户端 - 也许你也有类似的问题。
在
CassandraHost
上,您可以配置ExhaustedPolicy
。默认情况下,如果 Cassandra 繁忙,此类主机将被标记为关闭 - 即使它在线。 Hector 每retryDownedHostsDelayInSeconds
检查所有标记为关闭的主机。是否有可能,您的主机繁忙了一段时间,被标记为停机,并且尚未触发重试?
I' am using hector as Cassandra client - maybe you have similar problem.
On
CassandraHost
you can configureExhaustedPolicy
. Default, if Cassandra is busy, such host will be marked as down - even if it is online. Hector checks all hosts marked as down everyretryDownedHostsDelayInSeconds
.Is is possible, that your host was busy for some time, it was marked down, and retry was not triggered yet?