Hi guys,
I’ve having the error bellow, Does anyone have any idea?
Thanks
python example_core.py
2015-10-29 17:02:21,750 [DEBUG] cassandra.cluster: Connecting to cluster, contact points: ['10.20.255.191']; protocol version: 3
2015-10-29 17:02:21,751 [DEBUG] cassandra.pool: Host 10.20.255.191 is now marked up
2015-10-29 17:02:21,752 [DEBUG] cassandra.cluster: [control connection] Opening new connection to 10.20.255.191
2015-10-29 17:02:21,754 [DEBUG] cassandra.connection: Not sending options message for new connection(28408336) to 10.20.255.191 because compression is disabled and a cql version was not specified
2015-10-29 17:02:21,755 [DEBUG] cassandra.connection: Sending StartupMessage on <LibevConnection(28408336)
10.20.255.191:9042>
2015-10-29 17:02:21,756 [DEBUG] cassandra.connection: Sent StartupMessage on <LibevConnection(28408336)
10.20.255.191:9042>
2015-10-29 17:02:21,756 [DEBUG] cassandra.io.libevreactor: Starting libev event loop
2015-10-29 17:02:21,759 [DEBUG] cassandra.connection: Got ReadyMessage on new connection (28408336) from 10.20.255.191
2015-10-29 17:02:21,761 [DEBUG] cassandra.cluster: [control connection] Established new connection <LibevConnection(28408336)
10.20.255.191:9042>, registering watchers and refreshing schema and topology
2015-10-29 17:02:21,805 [DEBUG] cassandra.cluster: [control connection] Refreshing node list and token map using preloaded results
2015-10-29 17:02:21,806 [INFO] cassandra.policies: Using datacenter 'datacenter1' for DCAwareRoundRobinPolicy (via host '10.20.255.191'); if incorrect, please specify a local_dc to the constructor, or limit contact points to local cluster nodes
2015-10-29 17:02:21,806 [DEBUG] cassandra.cluster: [control connection] Finished fetching ring info
2015-10-29 17:02:21,807 [DEBUG] cassandra.cluster: [control connection] Rebuilding token map due to topology changes
2015-10-29 17:02:31,816 [DEBUG] cassandra.io.libevreactor: Closing connection (28408336) to 10.20.255.191
2015-10-29 17:02:31,817 [DEBUG] cassandra.io.libevreactor: Closed socket to 10.20.255.191
2015-10-29 17:02:31,818 [DEBUG] cassandra.io.libevreactor: All Connections currently closed, event loop ended
2015-10-29 17:02:31,819 [WARNING] cassandra.cluster: [control connection] Error connecting to
10.20.255.191:
Traceback (most recent call last):
File "/home/ealfaia/workspace_patrizio/python-driver/cassandra/cluster.py", line 2117, in _reconnect_internal
return self._try_connect(host)
File "/home/ealfaia/workspace_patrizio/python-driver/cassandra/cluster.py", line 2164, in _try_connect
self._refresh_schema(connection, preloaded_results=shared_results, schema_agreement_wait=-1)
File "/home/ealfaia/workspace_patrizio/python-driver/cassandra/cluster.py", line 2343, in _refresh_schema
responses = connection.wait_for_responses(*queries, timeout=self._timeout, fail_on_error=False)
File "/home/ealfaia/workspace_patrizio/python-driver/cassandra/connection.py", line 438, in wait_for_responses
return waiter.deliver(timeout)
File "/home/ealfaia/workspace_patrizio/python-driver/cassandra/connection.py", line 839, in deliver
raise OperationTimedOut()
OperationTimedOut: errors=None, last_host=None
2015-10-29 17:02:31,827 [ERROR] cassandra.cluster: Control connection failed to connect, shutting down Cluster:
Traceback (most recent call last):
File "/home/ealfaia/workspace_patrizio/python-driver/cassandra/cluster.py", line 840, in connect
self.control_connection.connect()
File "/home/ealfaia/workspace_patrizio/python-driver/cassandra/cluster.py", line 2091, in connect
self._set_new_connection(self._reconnect_internal())
File "/home/ealfaia/workspace_patrizio/python-driver/cassandra/cluster.py", line 2126, in _reconnect_internal
raise NoHostAvailable("Unable to connect to any servers", errors)
NoHostAvailable: ('Unable to connect to any servers', {'10.20.255.191': OperationTimedOut('errors=None, last_host=None',)})
2015-10-29 17:02:31,828 [DEBUG] cassandra.cluster: Shutting down Cluster Scheduler
2015-10-29 17:02:31,829 [DEBUG] cassandra.cluster: Shutting down control connection
Traceback (most recent call last):
2015-10-29 17:02:31,829 [DEBUG] cassandra.cluster: Not executing scheduled task due to Scheduler shutdown
File "example_core.py", line 129, in <module>
main()
File "example_core.py", line 76, in main
session = get_session()
File "example_core.py", line 41, in get_session
session = cluster.connect()
File "/home/ealfaia/workspace_patrizio/python-driver/cassandra/cluster.py", line 840, in connect
self.control_connection.connect()
File "/home/ealfaia/workspace_patrizio/python-driver/cassandra/cluster.py", line 2091, in connect
self._set_new_connection(self._reconnect_internal())
File "/home/ealfaia/workspace_patrizio/python-driver/cassandra/cluster.py", line 2126, in _reconnect_internal
raise NoHostAvailable("Unable to connect to any servers", errors)
cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers', {'10.20.255.191': OperationTimedOut('errors=None, last_host=None',)})
2015-10-29 17:02:31,836 [DEBUG] cassandra.io.libevreactor: Waiting for event loop thread to join...
2015-10-29 17:02:31,837 [DEBUG] cassandra.io.libevreactor: Event loop thread was joined