datastax enterprise - How to Resolve Error Message: "No connection could be made because the target machine actively refused it." -
i accidentally shorted out power pc while programming cassandra via cqlsh within windows command prompt. after restoring power, tried re-run cassandra via cqlsh:
c:\program files....\apache-cassandra\bin>cqlsh
and received following error message; connection error: (unable connect server’ {‘127.0.0.1’: error (10061, “tried connecting [(‘127.0.0.1’, 9042)]. last error: no connection made because target machine actively refused it”)}).
i’m using cassandra version 3.0 on single pc window 7 operating system , using cqlsh via command prompt. pc not have connections external clusters.
from similar questions relating same error message, there comment ‘”actively refused it” means host sent reset instead of ack when tried connect. ….either there firewall blocking connection or process hosting service not listening on port. may because not running @ or because listening on different port. once start process hosting service, try netstat –anb verify running , listening on expected port.”
based on above, have looked @ windows firewall inbound , outbound rules , cannot find local port 9042. unfortuntely, don’t know pathway in order run netstat –anb.
could provide steps follow re-establish connection port 9042, if fix problem, or how re-establish access run cqlsh in command prompt again.
it's cassandra daemon/service not running - i'm not familiar cassandra on windows (whether runs service, or if have start via command line), started previously, should start again in same manner. on linux, /etc/init.d/cassandra start
or ./bin/cassandra
- on windows, you'll either want start service, or ./bin/cassandra.bat
or ./bin/cassandra.ps1
or similar.
Comments
Post a Comment