Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cassandra永久ReadTimeoutException_Cassandra_Cassandra 2.1 - Fatal编程技术网

Cassandra永久ReadTimeoutException

Cassandra永久ReadTimeoutException,cassandra,cassandra-2.1,Cassandra,Cassandra 2.1,环境 我有以下环境: 卡桑德拉2.1.0 一个DC中有5个节点,第二个DC中有4个节点 每秒写入2500次 最小读取(通常无,有时很少) 问题 运行几周后,我无法从集群读取任何数据,因为我有ReadTimeoutException如下所示: ERROR [Thrift:15] 2015-01-07 14:16:21,124 CustomTThreadPoolServer.java:219 - Error occurred during processing of message. com.g

环境

我有以下环境:

  • 卡桑德拉2.1.0
  • 一个DC中有5个节点,第二个DC中有4个节点
  • 每秒写入2500次
  • 最小读取(通常无,有时很少)
问题

运行几周后,我无法从集群读取任何数据,因为我有
ReadTimeoutException
如下所示:

ERROR [Thrift:15] 2015-01-07 14:16:21,124 CustomTThreadPoolServer.java:219 - Error occurred during processing of message.
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.RuntimeException: org.apache.cassandra.exceptions.ReadTimeoutException: Operation timed out - received only 2 responses.
确切地说,这不是我集群中的唯一问题,这里描述了第二个问题:我将尝试使用leshkin建议的fix from

问题


我知道我可能没有提供足够的信息,但我不知道我应该寻找什么。我知道我可以查询一个而不是QUORUM,但只有QUORUM选项可以为我提供可靠的数据。

在通过“cqlsh”(CQL交互终端)运行查询之前,请使用“跟踪打开”,查看Cassandra正在忙什么@omid我不在CQLSH中运行我的命令,而是使用cassandra驱动程序,正如我在CQLSH中所知道的,命令不使用QUORUM,而是使用QUORUMONE@Garath您可以使用consistence命令在cqlsh中设置一致性。它默认为一。@Zanson您是对的。我不久前发现了这个选项