使用python cassandra驱动程序在Cassandra中写入超时错误

最后发布: 2018-10-03 13:04:23


问题

我有一个单节点群集,执行以下查询时,出现以下错误,

DELETE FROM issuetable WHERE "partitionId"='1';

**

  • 错误

**:

WriteTimeout: Error from server: 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, 'consistency': 'QUORUM'}

根据datastax文档( https://datastax.github.io/python-driver/api/cassandra.html ),他们提到在cassandra.yaml中增加了write_request_timeout_in_ms

问题

1)为什么会出现此错误? 根据我的表( issuetable ),该分区下只有84个条目。

2)应该在客户端还是服务器端解决?

python cassandra cassandra-python-driver