Error connecting to Debian localhost database

Asked

Viewed 45 times

-2

I created a virtual machine and installed Debian.
After I installed the Cassandra and checked the status to know that the bank is running. but when executing the command cqlsh in localhost I get the following message:

Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(111, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})

Searching the Internet, they said to use cqlsh 127.0.01, cqlsh 127.0.01:9042, cqlsh <hostname> and other variations and did not succeed.
The only change I made to the file cassandra.yaml was to replace localhost for 127.0.0.1 in these two settings
rpc_adrress: 127.0.0.1
listen_address: 127.0.0.1

1 answer

0


The installation of Cassandra is ready to run localhost. I believe no changes are required in Cassandra.yaml

First I suggest you check if the Database is actually "up and running" by running the nodetool status command. If the command fails, I suggest you check if the command actually went up. You can check this by running the command netstat -tulpn | grep 9042. If you don’t have any process running, your Registry hasn’t gone up. I suggest evaluating the logs that are normally in the linux /var/log

  • was that same way @Coutinhobr, was using the standard version of Java, and the Java Server needs to be version 8

Browser other questions tagged

You are not signed in. Login or sign up in order to post.