cassandra installation on windows 10 , unable to connect to server - cassandra

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.

Related

Setup Cassandra in github actions

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")})

How to fix cassandra error:111 after Updating the Jdk to 11

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?

Failed to connect to all replicas when using cqlsh's COPY

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;

Can't connect to Cassandra when i'm trying to edit cassandra.yaml

Every time i'm trying to edit the cassandra.yaml file, I can't connect to Cassandra with cqlsh, even if I don't modify the file.
I'm getting the following error :
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")})
The parameters for rpc_address and listen_address are good, even for the port.
I really need help for this, thank you in advance
Before going query on cassandra setup or export the environment variable of cqlsh.
You have to export HOST AND PORT in environment like:
export CQLSH_HOST="hostname/ip_address"
export CQLSH_PORT="cassandra_port"
Try connecting like this:
cqlsh IP_ADDRESS_HERE -u cassandra

How fix error in install and connect apache cassandra on win?

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?

Resources