Skip to main content
Bumped by Community user
Bumped by Community user
edited tags
Link
Erick Ramirez
  • 4.2k
  • 1
  • 7
  • 27
Source Link

Cassandra pool warning displaying continuously

I am using the Cassandra driver for python in Spyder. I am trying to fetch some data from Cassandra table. Here is my code:

from cassandra.cluster import Cluster
cluster=Cluster(['some_ip'])
session=cluster.connect('some_key_space')
df_filtered_10m=session.execute("some query")

This is all working fine and I am getting the desired results. The problem is that in the console, this message is continuously popping up:

WARNING:cassandra.pool:Error attempting to reconnect to 10.0.10.91, scheduling retry in 256.0 seconds: [Errno None] Tried connecting to [('10.0.10.91', 9042)]. Last error: timed out

I have tried cluster.shutdown but it not working as well. How to get rid of it?