0
votes

I want to start cqlsh shell but it gives me error like

Connection error: Unable to connect to any servers', {'127.0.0.1': error(10061,"Tried connecting to [('127.0.0.1', 9042)]. Last error: No connection could be made because the target machine actively refused it")})`

1
And Cassandra is running on the local machine and listening on port 9042?Ralf
yes cassandra is running on local machine on port 9042Mohit Shaha
Do you have a local firewall?Ralf
yes my firewall is on do i need to turn it off and if yes will u please give me steps to turn off firewallMohit Shaha
Disable it to see whether it makes a difference.Ralf

1 Answers

0
votes

For the default installation, in order to use cqlsh you must be logged in as root. You cannot simply use sudo, as that only grants root privileges if allowed; but you can use su. I hope this helps.