When I use the command bin/cassandra install in git bash it displays this error:
$ Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon
It completes on "cmd," but when I use bin/cqlsh I get this error:
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")})
How can i fix it?
for install cassandra on windows , only way for this work , should we install it with datastax? or can we install cassandra only?
Related
I downloaded mongodb-bin and mongodb-tools-bin in AUR.I just typed sudo systemctl enable mongodb and just ran mongo.This is the error i got:
$ mongo
MongoDB shell version v5.0.5
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect#src/mongo/shell/mongo.js:372:17
#(connect):2:6
exception: connect failed
exiting with code 1
I saw somebody say to just delete /var/lib/mongodb/mongod.lock but when i checked there was no mongod.lock file
I have fixed the problem by deleting /tmp/mongodb-27017.sock.I have found the answer here
I need to setup cassandra db in github actions and create keyspace there. How can I achieve that? I tried with actions from marketplace fabasoad/setup-cassandra-action but is given an error.
Connection error: ('Unable to connect to any servers', {'127.0.0.1:9042': error(111, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})
lately I upgraded my JVM to the newest version 11. However, when I did that, I started having this error.
Cqlsh output: 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")})
I would like to continue on using Jdk 11, however I would like to have cassandra working!
Any suggestion?
my 3-node Cassandra cluster is deployed on AWS with a AWS elastic load balancing (ELB)
When I run the following:
$cqlsh -u <userid> -p <pwd> <ELB's ip> -f backup.cqlsh
and in backup.cqlsh:
COPY comm_hub.my_table TO 'my_table.csv' WITH PAGESIZE=10;
but after exporting about 200 rows, I got
backup.cqlsh:1:
Error for (-429560303281209914, -419692349690315328):
Failed to connect to all replicas ['10.16.234.41', '10.16.233.40', '10.16.234.130'] for (-429560303281209914, -419692349690315328), errors:
['NoHostAvailable - (\'Unable to connect to any servers\', {\'10.16.234.41\': error(None, "Tried connecting to [(\'10.16.234.41\', 9042)]. Last error: timed out")})', 'NoHostAvailable - (\'Unable to connect to any servers\', {\'10.16.233.40\': error(None, "Tried connecting to [(\'10.16.233.40\', 9042)]. Last error: timed out")})', 'NoHostAvailable - (\'Unable to connect to any servers\', {\'10.16.234.130\': error(None, "Tried connecting to [(\'10.16.234.130\', 9042)]. Last error: timed out")})'] (will try again later attempt 1 of 5)
What I am missing?
I had the same problem in a local cluster and solved it by setting NUMPROCESSES = 1.
In the example you provided: COPY comm_hub.my_table TO 'my_table.csv' WITH PAGESIZE=10 AND NUMPROCESSES=1;
i have installed "datastax-ddc-64bit-3.9.0.msi" on windows 10, when i run Cassandra CQL Shell i have got this error.
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")})
What is the rpc_address configured? And connect CQL with that hostname/IP. E.g.
cqlsh <rpc_address> <native_transport_port>
Check the above values in your Cassandra.yaml file.