I am using MAC OS (Monterey 12.2.1) Apple M1, Chip
PostgreSQL works fine for me but Cassandra doesn't. After installing and importing cassandra, I tried connecting to the local instance of Apache Cassandra as done below
import cassandra
from cassandra.cluster import Cluster
try:
cluster = Cluster(['127.0.0.1'])
session = cluster.connect()
except Exception as e:
print(e)
However I got the following error:
('Unable to connect to any servers', {'127.0.0.1:9042': ConnectionRefusedError(61, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})
I have cassandra 4.0.3 installed and and I have tried many of the suggestions online but didn't work for me. I cannot even find files like cassandra-env.sh, cassandra.yaml
With the command java -version, I have:
java version "1.8.0_321"
Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)