gpt4 book ai didi

cassandra - 即使是简单的查询也不适用于集群 ("Request did not complete within rpc_timeout")

转载 作者:行者123 更新时间:2023-12-01 09:30:13 25 4
gpt4 key购买 nike

我已经成功建立了一个有 7 个节点的 Cassandra 集群。但是,我无法让它用于基本查询。

CREATE TABLE lgrsettings (
siteid bigint,
channel int,
name text,
offset float,
scalefactor float,
units text,
PRIMARY KEY (siteid, channel)
)

insert into lgrsettings (siteid,channel,name,offset,scalefactor,units) values (999,1,'Flow',0.0,1.0,'m');

然后在一个节点上:

select * from lgrsettings;

Request did not complete within rpc_timeout.

还有一个:

select * from lgrsettings;
Bad Request: unconfigured columnfamily lgrsettings

即使键空间和列族出现在所有节点上。

我可以从哪里开始寻找任何想法?

亚历克斯

有趣的结果。处理键空间创建和插入的节点显示:

Keyspace: testdata
Read Count: 0
Read Latency: NaN ms.
Write Count: 2
Write Latency: 0.304 ms.
Pending Tasks: 0
Column Family: lgrsettings
SSTable count: 0
Space used (live): 0
Space used (total): 0
Number of Keys (estimate): 0
Memtable Columns Count: 10
Memtable Data Size: 129
Memtable Switch Count: 0
Read Count: 0
Read Latency: NaN ms.
Write Count: 2
Write Latency: NaN ms.
Pending Tasks: 0
Bloom Filter False Positives: 0
Bloom Filter False Ratio: 0.00000
Bloom Filter Space Used: 0
Compacted row minimum size: 0
Compacted row maximum size: 0
Compacted row mean size: 0

Column Family: datapoints
SSTable count: 0
Space used (live): 0
Space used (total): 0
Number of Keys (estimate): 0
Memtable Columns Count: 0
Memtable Data Size: 0
Memtable Switch Count: 0
Read Count: 0
Read Latency: NaN ms.
Write Count: 0
Write Latency: NaN ms.
Pending Tasks: 0
Bloom Filter False Positives: 0
Bloom Filter False Ratio: 0.00000
Bloom Filter Space Used: 0
Compacted row minimum size: 0
Compacted row maximum size: 0
Compacted row mean size: 0

其他节点在 cfstats 中没有,但在 DESCRIBE KEYSPACE 测试数据中显示;在 CQL3 客户端中...

最佳答案

请求未在 rpc_timeout 内完成

检查您的 Cassandra 日志以确认是否存在任何问题 - Cassandra 中的异常有时会导致客户端超时。

关于cassandra - 即使是简单的查询也不适用于集群 ("Request did not complete within rpc_timeout"),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16334608/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com