0

我有一个 3 个节点的 CCM 集群。我正在通过 python 脚本向它写入和读取数据。我可以轻松地写入所有数据(无论大小)。当我从 python 脚本读取大量数据时,节点会关闭。从 CQLSH 尝试时,我可以成功读取任意数量的数据。我在下面包含错误消息。

temp = session.execute("""SELECT * FROM ***.***""")

Traceback (most recent call last):
File "/home/divyansh/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3296, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-fccba5094f88>", line 2, in <module>
SELECT * FROM ***.***""")
File "cassandra/cluster.py", line 2240, in 
cassandra.cluster.Session.execute
File "cassandra/cluster.py", line 4198, in 
cassandra.cluster.ResponseFuture.result
cassandra.cluster.NoHostAvailable: ('Unable to complete the 
operation against any hosts', {<Host: 127.0.0.1:9042 datacenter1>: 
ConnectionShutdown('Connection to 127.0.0.1:9042 was closed',)})
4

0 回答 0