【发布时间】:2019-09-28 04:39:57
【问题描述】:
注意:我有超过 15967908 条记录。我是新手 卡桑德拉。参考:Is there a way to effectively count rows of a very huge partition in Cassandra?
Coordinator node timed out waiting for replica nodes in Cassandra Datastax while insert data
嗨,朋友们,我正在寻找其他答案,但对我来说没有用。他们提到我们需要增加 cassandra.yaml 文件中的超时时间,但问题是我没有该文件。
我已经用 HomeBrew 安装了 Cassandra。以下是我目前在 MacBook 上运行的版本
cqlsh:cassandra_training> show version;
[cqlsh 5.0.1 | Cassandra 3.11.4 | CQL spec 3.4.4 | Native protocol v4]
当我这样做时
cqlsh:cassandra_training> select count(*) from access_point_logs;
然后得到以下错误
ReadTimeout: Error from server: code=1200 [Coordinator node timed out waiting for replica nodes' responses] message="Operation timed out - received only 1 responses." info={'received_responses': 1, 'required_responses': 1, 'consistency': 'ONE'}
我需要增加哪个文件的超时时间。因为我没有得到 cassandra.yaml 文件。
我的Cassandra安装路径如下
/usr/local/Cellar/cassandra/3.11.4
有没有办法统计记录数。
【问题讨论】:
-
您使用的是哪个 Cassandra 的 DSE 或 OSS?
-
@Nama 我正在使用来自 apache 网站的开源,因为 Datastax 不支持新版本,我们需要升级到企业版。