在插入数据时,协调器节点超时等待Cassandra Datastax中的副本节点 [英] Coordinator node timed out waiting for replica nodes in Cassandra Datastax while insert data
问题描述
当我尝试使用下面的查询插入数据Cassandra使用下面提到的错误
When I try to Insert data in Cassandra using the below query I am getting the below mentioned error
cqlsh:assign> insert into tblFiles1(rec_no,clientid,contenttype,datafiles,filename) values(1,2,'gd','dgfsdg','aww');
WriteTimeout:code = 1100 [协调器节点超时等待
replica nodes'responses] message =操作超时 - 只接收
0响应。 info = {'received_responses':0,'required_responses':1,
'consistency':'ONE'}
WriteTimeout: 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': 'ONE'}
我的版本 Cassandra
和 DSE
:
[cqlsh 5.0.1 | Cassandra 2.1.5.469 | DSE 4.7.0 | CQL spec 3.2.0 | Native protoco l v3]
My Version of Cassandra
and DSE
:
[cqlsh 5.0.1 | Cassandra 2.1.5.469 | DSE 4.7.0 | CQL spec 3.2.0 | Native protoco l v3]
推荐答案
增加Cassandra中的 write_request_timeout_in_ms
超时配置文件( cassandra.yaml )为
Increase the write_request_timeout_in_ms
Timeout in the Cassandra Config file (cassandra.yaml) as
write_request_timeout_in_ms: 20000
并重新启动您的伺服器
这篇关于在插入数据时,协调器节点超时等待Cassandra Datastax中的副本节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!