Questions tagged [cassandra-driver]

Apache Cassandra drivers for variety of programming languages

88 questions
0
votes
0 answers

Cassandra Java Driver 4.x - Timeout Configurations

# How long the driver waits for a request to complete. This is a global limit on the duration of # a session.execute() call, including any internal retries the driver might do. basic.request.timeout Driver Configuration Reference I was looking for…
Michael McFadyen
  • 2,675
  • 11
  • 25
0
votes
0 answers

Cassandra reconnection on Kubernetes when DNS name not changed but IP addresses changed?

I have Cassandra state full set in Kubernetes - 4 pods: cassandra-0, cassandra-1, cassandra-2, cassandra-3. Sometimes I need shutdown all nodes and start all nodes - I can not do this one node by node but all at same time. My clients loose…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
0
votes
2 answers

Errors connecting to AWS Keyspaces using a lambda layer

Intermittently getting the following error when connecting to an AWS keyspace using a lambda layer All host(s) tried for query failed. First host tried, 3.248.244.53:9142: Host considered as DOWN. See innerErrors. I am trying to query a table in a…
0
votes
1 answer

Include zipped secure connect file when build Next.js app on Amplify

There was a driver for connecting to the Datastax Astra-DB Cassandra Database in node.js called 'cassandra-driver'. For legacy connection It uses a connection secret key file named secure-connect-{DB-Name}.zip, syntax like this: const client = new…
Nasser1245
  • 37
  • 1
  • 5
0
votes
0 answers

Cassandra Python Driver Not Processing Queries (intermittently)

I'm having an issue where I'm connecting to a local Cassandra DB using Python Cassandra Driver. Issue is, there will intermittently be an issue where my CREATE TABLE queries are not being executed. There is also an issue where I can see the table…
XDPlatypus
  • 23
  • 5
0
votes
2 answers

Does the Cassandra Java driver have knowledge of port 7000?

Typically port 9042 is provided with the Cassandra cluster seed hosts to connect to Cassandra cluster for performing CRUD operations. Does Cassandra Java client driver has knowledge of port 7000 (used for peer communication) after the client…
0
votes
1 answer

Amazon Keyspaces sync_table() doesn't see a table immediately

I am new in cassandra-driver==3.25.0. I've created a model from Model and tried to sync it. The problem: I am calling sync_table I see that table starts creating in Keyspaces and the definition is correct BUT sync_table raises an exception KeyError…
Ilya
  • 45
  • 1
  • 10
0
votes
0 answers

Cassandra find records where list is empty

I have the following table CREATE TABLE shipment ( shipment_id TIMEUUID, dropoff_contact person, job_ids list, deleted boolean, PRIMARY KEY(shipment_id) ); CREATE INDEX IF NOT EXISTS job_ids ON loadex.shipment…
0
votes
1 answer

Query Cassandra form C# no result is shown

I am trying to run the query form my local machine using console as below select state from table limit 10 ALLOW FILTERING; it's giving me the output. But when I am trying it form console application I am not getting any result. Below is the code …
शेखर
  • 17,412
  • 13
  • 61
  • 117
0
votes
0 answers

Exception in thread "main" com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed

I'm trying to create a remote cluster with multiple nodes and open session with specific keyspace in Scala. my sbt : name := "CassandraConnect" version := "0.1" scalaVersion := "2.13.2" libraryDependencies ++= { Seq( …
0
votes
1 answer

pip driver is installed but module not found

I am trying to install cassandra driver for my python here And this is my code in the python However i still get an error saying no module name found 'cassandra'
0
votes
1 answer

automigration create database name 'undefined', create tables within 'undefined' database in loopback-connector-cassandra

I am trying to auto create table from the model using loopback 3 framework with cassandra database and experiencing some problem to connecting datasource with cassandra datasource.json "cassandraConn": { "host": "192.168.4.21", "port":…
0
votes
1 answer

Cassandra - error writing. How to solve it?

In our company, we do one project and use apache, Cassandra. Until recently, we used an older driver. Yesterday, we tried to replace it with the latest 4.3.0. We connect to the database, everything works as it should. The problem is when I try to…
0
votes
1 answer

Not able to connect to a keyspace using C driver for Cassandra

I have the following code for a simple query of insertion into Cassandra. I am trying to use prepared statement here as the regular statement is not able to insert the timestamp in timestamp column of table time_demo. CassFuture*…
A Beginner
  • 393
  • 2
  • 12
0
votes
0 answers

Not able to insert timestamp data in Cassandra from C program

I have a simple code written in C for inserting local date and time into Cassandra's timestamp column as follows: time_t rt= time(NULL); struct tm * timeinfo; timeinfo = localtime ( &rt ); char lt[20]; strftime(lt, sizeof(lt), "%Y-%m-%d %T",…
A Beginner
  • 393
  • 2
  • 12