Cassandra的可用性 [英] Availability of Cassandra

查看:370
本文介绍了Cassandra的可用性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个问题me.prettyprint.hector.api.exceptions.HUnavailableException::可能不足以处理一致性级别的副本。当我有RF = 1,读一致性级别= 1和6节点环/集群中的一个节点关闭。我所有的读都失败了这个异常。任何想法?理想地,只有在节点中查找数据的读取失败,所有其他读取应该成功?

I am running into an issue "me.prettyprint.hector.api.exceptions.HUnavailableException: : May not be enough replicas present to handle consistency level." when I have RF=1, Read Consistency Level = 1 and one of the nodes in 6 node ring/ cluster is down. All of my reads are failing with this exception. Any idea? Ideally only reads that are looking for data in the node which is down should fail and all other reads should be successful?

推荐答案

可能有以下几种可能性:

There could be a few possibilities:


  • 您正在运行需要多个节点的多行查询(get_range,get_indexed_slices,multiget或cql等效项)

  • 您的群集不平衡,下行节点拥有最多的环;坏的多dc配置也可能产生类似的东西。

  • 您的群集开始时处于不良状态,其中一些节点看不到其他节点。确保当针对群集中的每个节点运行时,nodetool环显示相同的输出

如果这些都不是原因,请仔细检查您正在使用Hector和cqlsh指定一致性级别。

If none of those are the cause, double check that you're specifying the consistency level correctly with Hector and cqlsh.

这篇关于Cassandra的可用性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆