nodetool Failed to connect to 127 0 0 1 7199 - ConnectException Connection refused Connection refused

0 votes

Hi Guys,

I installed Cassandra successfully in my system and I tried to check status, but I am getting below error.

$ nodetool status
nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused (Connection refused)'.

what am I doing wrong?

Thank You

Apr 1, 2020 in Big Data Hadoop by akhtar
• 38,260 points
17,655 views

1 answer to this question.

0 votes

Hi@akhtar,

To avoid this error, You have to configure cassandra-env.sh file.

  • Open the configuration file using following command.

$ vi /etc/cassandra/default.conf/cassandra-env.sh
  • uncomment the below line

JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=127.0.0.1"
  • Restart cassandra service

$ systemctl restart cassandra

Hope this will help.

Thank You

answered Apr 1, 2020 by MD
• 95,460 points

Related Questions In Big Data Hadoop

0 votes
1 answer

MySql connection localhost vs 127.0.0.1

The difference is that when you use localhost, ...READ MORE

answered Dec 26, 2018 in Big Data Hadoop by Omkar
• 69,220 points
4,397 views
0 votes
1 answer

How to upgrade Apache Hadoop from 2.4.1 to 2.6.0?

If the downtime is not an issue, ...READ MORE

answered Sep 7, 2018 in Big Data Hadoop by Frankie
• 9,830 points
633 views
0 votes
1 answer
0 votes
1 answer

Hadoop: java.io.IOException: File could only be replicated to 0 nodes instead of minReplication (=1)

Try this, first stop all the daemons, ...READ MORE

answered Nov 6, 2018 in Big Data Hadoop by Omkar
• 69,220 points
3,502 views
0 votes
1 answer

configure Cassendra in Linux system?

Hi@akhtar, To install cassandra in your system, follow ...READ MORE

answered Apr 1, 2020 in Big Data Hadoop by MD
• 95,460 points
782 views
0 votes
1 answer
0 votes
1 answer

How to create table in cassandra?

Hi@akhtar, To create table in cassandra, you have ...READ MORE

answered Apr 1, 2020 in Big Data Hadoop by MD
• 95,460 points
637 views
0 votes
1 answer
+1 vote
1 answer

ssh: connect to host localhost port 22: Connection refused in Hadoop.

Hi@akhtar, You need to uninstall SSH and reinstall ...READ MORE

answered Dec 18, 2020 in Big Data Hadoop by MD
• 95,460 points
10,227 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP