from cassandra.cluster import Cluster
hostname = ['contact_point_name']
port = '10350'
cluster = Cluster(hostname, control_connection_timeout=None, port = port)
session = cluster.connect()
Error: NoHostAvailable: ('Unable to connect to any servers', {'23.96.242.234:10350': OperationTimedOut('errors=Timed out creating connection (5 seconds), last_host=None')})
The error you posted indicates that it couldn't connect to the cluster at all.
The possible causes are:
10350on IP23.96.242.234Cassandra is listening for client connections on IP
rpc_addressand portnative_transport_port(default is9042). Confirm that you have the correct details and ensure there's connectivity between your machine and the cluster using Linux tools such astelnetornc. Cheers!