【发布时间】:2016-01-16 15:29:54
【问题描述】:
我使用 COPY 从 CSV 导入了大约 400 万行。进入该过程 90 分钟后,我收到以下错误,这表明在等待副本节点时出现了一些问题。 Keyspace 设置为复制因子 1,集群中只有一个节点。那么为什么协调器必须等待任何其他节点呢?
Processed 4050000 rows; Write: 624.27 rows/ss
code=1100 [Coordinator node timed out waiting for replica nodes' responses] message="Operation timed out - received only 0 responses." info=
{'received_responses': 0, 'required_responses': 1, 'write_type': 0, 'consistency': 1}
Aborting import at record #4050617. Previously-inserted values still present.
4050671 rows imported in 1 hour, 26 minutes, and 43.649 seconds.
我已经看到了这个问题: Coordinator node timed out waiting for replica nodes in Cassandra Datastax while insert data
但这并不能解释为什么当复制因子为 1 并且它是一个 1 节点集群时,协调器会期望存在副本节点。
更多信息:
节点状态
student@cascor:~$ nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns Host ID Rack
UN 127.0.0.1 1.64 GB 256 ? f550e955-00f3-49a4-bc2d-c7f775079359 rack1
Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless
键空间配置
cqlsh:excelsior> desc keyspace;
CREATE KEYSPACE excelsior WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
【问题讨论】: