【发布时间】:2017-02-11 00:37:54
【问题描述】:
我正在尝试使用 cqlsh (cqlsh 5.0.1 | Cassandra 2.1.12 | CQL spec 3.2.1 | Native protocol v3) 对列族进行以下查询
查询:
select * from CassandraColumnFamily limit 10
但它给出了以下错误
错误:
ReadTimeout: code=1200 [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'}
我可以使用以下 python 脚本读取数据。我无法弄清楚这可能是什么问题。
cluster = Cluster(
contact_points = ['IP1','IP2','IP3']
)
session = cluster.connect('cw')
query = "select col1 , col2, col3, col4, col5 from CassandraColumnFamily"
statement = SimpleStatement(query, fetch_size=50000)
【问题讨论】:
标签: python cassandra datastax cassandra-2.0