Failed to connect to '127.0.0.1:7199': Connection refused (Connection refused)



  • $  nodetool status
    Failed to connect to '127.0.0.1:7199': Connection refused (Connection refused)
    

    This error relates to the Cassandra daemon not starting up.

    • Incorrect entries in the cassandra configuration file: cassandra.yml

    Clean up old dataset.

    $ sudo rm -rf /var/lib/cassandra/data/system/*
    

    Ensure entries in cassandra.yml are configured correctly.

    $ sudo vi /etc/cassandra/conf/cassandra.yaml
    

    Pay particular attention to the seed addresses and listen_address, if the installation is on a localhost, single node, keep seed as localhost and the listen_address as localhost.

    Check this link for configuration options: http://cassandra.apache.org/doc/4.0/configuration/cassandra_config_file.html


Log in to reply
 

© Lightnetics 2024