Questions tagged [datastax-node-driver]
36 questions
3
votes
1 answer
Cassandra nodejs eachRow return before db query completed
I'm using Cassandra with nodejs to fetch big table with eachRow.
I need to insert data on each row, but for some reason it's not waiting for the query and it finish before it's done.
client.eachRow(query, [], { prepare: true, autoPage : true,…

Rafael Mor
- 626
- 1
- 7
- 21
2
votes
1 answer
Duration column type is returned as custom type
I have the following table in cassandra:
create table duration_table
(
id int primary key,
duration_col duration
);
Cassandra DB version is 4.0.5, cassandra nodejs driver version is 4.6.4.
When I request table metadata…

Liberator
- 75
- 7
2
votes
2 answers
How many parallel write requests can a single Node.js driver connection process?
How many parallel write requests can I make to cassandra from a single connection in a nodejs process?
I am using:
cassandra-driver@4.6.3 : https://www.npmjs.com/package/cassandra-driver
I am not using batch... as i understand it is not recommended…

Cpp crusaders
- 117
- 2
- 10
2
votes
2 answers
Cassandra Node.js driver - possible to toggle ALLOW FILTERING?
Our team has recently switched from self-hosted Cassandra to AWS Keyspaces.
Although the "brochure" mentions Cassandra compatibility, we are actually losing some of Cassandra most critical functionality (with the important ones - UDT, Materialized…

dev7
- 6,259
- 6
- 32
- 65
2
votes
2 answers
Expose Cassandra running on Kubernetes
I am running Cassandra on Kubernetes (3 instances) and want to expose it to the outside, my application is not yet in Kubernetes. So i crated a load balanced service like so:
apiVersion: v1
kind: Service
metadata:
namespace: getquanty
labels:
…

e-nouri
- 2,576
- 1
- 21
- 36
2
votes
0 answers
datastax node.js driver for graph(using gremlin queries), How can I fetch large results set?
Im using datastax node.js driver for dse graph.
According to http://docs.datastax.com/en/developer/nodejs-driver/latest/features/paging/
It works only for Cassandra and DSE, but I would like to do the same for DSE Graph using gremlin queries :…

user4808924
- 31
- 5
1
vote
0 answers
The fields "strategy", "strategyOptions" in a keyspace object are undefined when client encoding is set to map: Map
Cassandra DB version is 4.0.5, cassandra nodejs driver version is 4.6.4.
According to this solution I'm creating a cassandra nodejs client with the following code:
const client = new cassandra.Client({
contactPoints: ['127.0.0.1'],
…

Liberator
- 75
- 7
1
vote
1 answer
Apache Cassandra: Cannot import values of type `map` using CSV files
The problem
I have defined a table into Apache Cassandra which has a column of type map and I can't find a way to insert records in it via CSV file, because of a parsing error thrown by CQL shell.
I am able to insert records manually…
1
vote
1 answer
Getting connection timeouts on application startup
We have a staging instance of our web app that connects to DataStax Astra PAYG using NodeJS driver.
Sometimes when the app has been idle and is first accessed we get repeated instances of this error for around a minute, then the errors stop and…

rodneyt
- 71
- 7
1
vote
2 answers
How do I post a JSON object into a CQL map column?
New with Cassandra, i would like to store some datas in a table with UDT. So i create a UDT with a map column :
CREATE TYPE IF NOT EXISTS test.lifestyle (
name text,
values map
);
Then i create a table using this UDT…

Jean-Luc Aubert
- 620
- 5
- 19
1
vote
3 answers
How do I update a column with type map correctly?
I have the following table in Cassandra:
CREATE TABLE my_table (
id int,
map_bool_int_col MAP,
PRIMARY KEY (id)
);
According to cassandra Node.js driver documentation I can use js object to update columns with map type.
So…

Liberator
- 75
- 7
1
vote
2 answers
How do I connect to multiple keyspaces using one Cassandra Client object?
I was using such a following code to connect to only 1 keyspace:
This is `/config/db.ts:
import cassandra from "cassandra-driver";
class Cpool {
static _pool : cassandra.Client;
static connect(options : any){
this._pool = new…

best_of_man
- 643
- 2
- 15
1
vote
2 answers
Is it possible to do a regex search in Amazon keyspaces?
I am trying to implement seach functionality based on the title field of entries present in amazon keyspaces. I was trying to do a regex match on the title field but I am not to figure out how it could be done. Does amazon keyspace supports regex…

hemant jangid
- 51
- 4
1
vote
4 answers
How can I connect to my Datastax Cassandra database?
hope all is well with you.
I'm currently working with a cassandra database and I'm almost done with it.
Currently I am deploying my services and an error occurred.
To work best with cassandra in my nestjs back-end I use the framework…

Shift
- 31
- 4
1
vote
0 answers
How do I store the DB auth token so it is available to other modules in Node.js?
I am trying to connect Node application with DataStax - Cassandra online DB drivers with the methods provided by them using the Request module of NodeJs.
Code-behind is as per below:
const request = require('request-promise');
var jar =…

Meet Patel
- 11
- 2