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;
Related
$ wget https://dlcdn.apache.org/cassandra/4.0.8/apache-cassandra-4.0.8-bin.tar.gz
--2023-02-19 04:04:57-- https://dlcdn.apache.org/cassandra/4.0.8/apache-cassandra-4.0.8-bin.tar.gz
Resolving dlcdn.apache.org (dlcdn.apache.org)... 151.101.2.132, 2a04:4e42::644
Connecting to dlcdn.apache.org (dlcdn.apache.org)|151.101.2.132|:443... failed: Connection timed out.
Connecting to dlcdn.apache.org (dlcdn.apache.org)|2a04:4e42::644|:443... failed: Network is unreachable.
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")})
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.
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
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?