28 Jun 2018 08:43 AM
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 ?
Solved! Go to Solution.
17 Sep 2018 03:50 AM
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