Hi all, I installed the latest cassandra by following instructions: https://cassandra.apache.org/_/download.htmlthen i tried to set up under the Ubuntu 20.04
root@ubuntu-test:~# service cassandra status ● cassandra.service - LSB: distributed storage system for structured data Loaded: loaded (/etc/init.d/cassandra; generated) Active: active (exited) since Sat 2021-08-28 17:50:13 +03; 4min 26s ago Docs: man:systemd-sysv-generator(8)
Service is active but when verify it i got below the errors
root@ubuntu-test:~# nodetool status nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused (Connection refused)'.
root@ubuntu-test:~# cqlsh Connection error: ('Unable to connect to any servers', {'127.0.0.1:9042': ConnectionRefusedError(111, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})
Then i tried
vim /etc/cassandra/cassandra-env.sh
and add to it this row
JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=localhost"
i restart the server but i got the same errors.
I don't do any changes in my cassandra config file it likes below.
listen_address: localhost seed_provider: # seeds is actually a comma-delimited list of addresses. # Ex: "<ip1>,<ip2>,<ip3>" - seeds: "127.0.0.1:7000" # For security reasons, you should not expose this port to the internet. Firewall it if needed. rpc_address: localhost
Help please i got still same errors.