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,170 points
6,005 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,160 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,130 points
1,795 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,810 points
137 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,130 points
1,801 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,160 points
130 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,160 points
94 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,160 points
1,465 views