からデータを読みながら、私はcqlsh(cqlsh 5.0.1 | Cassandra 2.1.12 | CQL spec 3.2.1 | Native protocol v3
)を用いたカラムファミリーで次のクエリを実行するために奇妙な行動カサンドラColumnfamily
照会しようとしています:
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)