I’m installing cassandra db in a droplet from Digital Ocean using the following guide:
https://www.digitalocean.com/community/tutorials/how-to-install-cassandra-and-run-a-single-node-cluster-on-ubuntu-22-04
However, when I try to connect with it using cqlsh appear:
root@ubuntu-s-cass-history-chat:~# cqlsh Traceback (most recent call last): File "/usr/bin/cqlsh.py", line 134, in <module> from cassandra.cluster import Cluster File "/usr/share/cassandra/lib/cassandra-driver-internal-only-3.25.0.zip/cassandra-driver-3.25.0/cassandra/cluster.py", line 33, in <module> ModuleNotFoundError: No module named 'six.moves' I tried to installing six with apt-get install python3-six, but persist the message.
¿What could it be?
Also, if I try to connect to the cassandra database remotely from my PC using python and the cassandra-driver library appears:
NoHostAvailable: (‘Unable to connect to any servers’, {‘host:port’: ConnectionRefusedError(10061, “Tried connecting to [(‘host’, port)]. Last error: Unable to establish a connection since the computer destination expressly denied said connection”)})
To try the connection I use the following code:
from cassandra.cluster import Cluster cluster = Cluster([host], port=port) session = cluster.connect()
Esteban Ávila Rincón is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.