cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cassandra not starting even after restart of services and server

rsharma374
Contributor

Cassandra not starting even after restart of services and server, getting error: # ./cassandra-nodetool.sh status nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused (Connection refused)' . Need to know if someone faced a similar issue and had a resolution ?

1 REPLY 1

alexander_schub
Newcomer

Hi

I had the same issue and found the solution.

Edit <cassandra_home>/conf/cassandra-env.sh

Before editing:
# jmx: metrics and administration interface
#
# add this if you’re having trouble connecting:
# JVM_OPTS=”$JVM_OPTS -Djava.rmi.server.hostname=”

After Editing:
JVM_OPTS=”$JVM_OPTS -Djava.rmi.server.hostname=yourhostname″

Regards

Alex


Featured Posts