Questions tagged [datastax-java-driver]

A Java client driver for Apache Cassandra. This driver works exclusively with the Cassandra Query Language version 3 (CQL3) and Cassandra's binary protocol.

The DataStax Java driver for Apache Cassandra is the de-facto standard for connecting to a Cassandra cluster from a Java application. Can be used to connect to:

  • Apache Cassandra
  • DataStax Enterprise (DSE)
  • DataStax Astra DB

Support and documentation: https://docs.datastax.com/en/developer/java-driver/latest/

997 questions
0
votes
1 answer

Managing Multiple Cassandra Sessions

I have multiple Cassandra clusters. Each cluster has specific set of contact points. Each cluster has separate set of tables/CF. In my C* client I am supposed to query both clusters. I am using spring-boot version of the Cassandra. I am trying to…
0
votes
1 answer

Datastax java-driver fetching row key

I have been stuck while working with java-driver. I execute a CQL query and fetch all rows. How do I get the key from the com.datastax.driver.core.Row object?
tomekkup
  • 353
  • 2
  • 14
0
votes
2 answers

Spring Data Cassandra and Map of Maps

I have a Cassandra table defined like so: create table foo (id int primary key, mapofmaps map>>); Into which I place some data: insert into foo (id, mapofmaps) values (1, {'pets'; {'dog'; 42, 'cat'; 7}, 'foods': {'taco':…
0
votes
1 answer

cassandra state listener sends duplicate signals one with public ip and another with private ip

I have a 5 node cassandra cluster and the listen_address in each nodes are configured with its private address in cassandra.yml. Config looks like below : NOTE: 192.168.1.* is a private ip address cassandra 1| listen_address:192.168.1.1 |…
Dhyan
  • 551
  • 2
  • 6
  • 15
0
votes
0 answers

I have to insert records into Cassandra using a Pojo Object Mapping

I need to Insert records into Cassandra ,so I wrote a function whose input is a csv file. Say the csv file's name is test.csv. In Cassandra I have a table test. I need to store each row of the csv file into the test table. Since I am using spark…
0
votes
2 answers

CQL pagination through User Defined Type

Let say i have this table CREATE TABLE mykeyspace.post ( id uuid PRIMARY KEY, title text, photos set> ); and UDT : CREATE TYPE mykeyspace.photoIds ( photoId uuid, details text ); How can I paginated through photos,…
Manish Kumar
  • 10,214
  • 25
  • 77
  • 147
0
votes
0 answers

CQLSSTableWriter not exporting .csv fully to SSTable - Cassandra

I have csv of 32GB with almost 150million rows, i planned to use SStableloader to export data to cassandra on EC2, & to generate SStable i used java codes below. Problem is, on server i am only getting 12k rows, also the filesize of generated…
Arsalan Saleem
  • 321
  • 2
  • 6
  • 21
0
votes
1 answer

Handling relational model in Cassandra

Background We have chosen Cassandra as our storage engine since we have an application that must handle async messaging between many users on the website and event storing (some types of analytics, what happens on site and when, etc.). Also we have…
0
votes
1 answer

Cassandra bind sql in statement

Is there anyway to bind to an SQL IN statement using Cassandra and the datastax driver? I will be passing a variable amount of parameters to the SQL in statement.
0
votes
1 answer

Cassandra account modeling with indexes

We are modeling account table in cassandra with social logins, we chose email as primary key and skinny row implementation. Our cassandra is on version 2.1.6. Here is table definition: CREATE TABLE account_by_email ( email_address text, …
0
votes
1 answer

Updating a Cassandra row by multiple processes in different times

Im planning a few ETLs that eventually will "fill" the same row in Cassandra, i.e. if a table is defined as: CREATE TABLE MyTable ( key text, column1 text, column2 text, column3 text, column4 text, PRIMARY KEY (key) ) Than few ETLs…
idoda
  • 6,248
  • 10
  • 39
  • 52
0
votes
1 answer

Datastax Mapper does not map fields present in abstract class

I am using datastax cassandra mapper and accessor to read/write data to cassandra. com.datastax.cassandra cassandra-driver-mapping 2.1.5
0
votes
1 answer

Unexpected connection timeout in datastax cassandra -com.datastax.shaded.netty.channel.ConnectTimeoutException

We are getting connection in Session object at very first time application starts . Our scheduler keeps inserting data into Cassandra using that . but some point of time , its getting connection timeout and then its reconnecting with Cassandra and…
0
votes
2 answers

Too many open files erroe in cassandra driver

I am using DataStax Java Driver 2.17 and I am getting this error: Caused by: io.netty.channel.ChannelException: Unable to create Channel from class class io.netty.channel.socket.nio.NioSocketChannel at…
Chandan
  • 3,349
  • 2
  • 22
  • 18
0
votes
1 answer

Mapping a column of type list/set/map using datastax object mapper

I am trying to use datastax mapper, and it is working fine, for all the primitive types. I am having trouble using it for Map type column in cassandra table. Possibly, the issue is also with Set and List type of column. Can Anyone help me on how to…
Abhishek Anand
  • 1,940
  • 14
  • 27