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 in Big Data Hadoop by akhtar
• 11,270 points
740 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 by MD
• 24,500 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,060 points
915 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
51 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

configure Cassendra in Linux system?

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

answered Apr 1 in Big Data Hadoop by MD
• 24,500 points
32 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 in Big Data Hadoop by MD
• 24,500 points
23 views