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

How to retrieve only the information that got changed from Cassandra?

I am working on designing the Cassandra Column Family schema for my below use case.. I am not sure what is the best way to design the cassandra column family for my below use case? I will be using CQL Datastax Java driver for this.. Below is my use…
AKIWEB
  • 19,008
  • 67
  • 180
  • 294
0
votes
4 answers

Unable to get Cassandra to Work in Basic Applcation

This is my current error: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1 (com.datastax.driver.core.TransportException: [/127.0.0.1] Unexpected exception triggered…
Harry
  • 1,659
  • 5
  • 19
  • 34
0
votes
1 answer

`InvalidQueryException: cannot parse '[B@50908fa9' as hex bytes` using Datastax Java driver

I am trying to insert byte array into Blob data type in my Cassandra table.. I am using Datastax Java driver. Below is my code - for (Map.Entry entry : attributes.entrySet()) { System.out.println("Key = " + entry.getKey() + ",…
AKIWEB
  • 19,008
  • 67
  • 180
  • 294
0
votes
1 answer

getting nullpointer exception in datastax

I am using cassandra1.2 with datastax java client 1.0.3 Using the samples for the java client from datastax I have created a class which will return me the session public class DataStaxPlugin { public static final Logger LOGGER =…
user2681607
  • 392
  • 1
  • 4
  • 10
0
votes
1 answer

Syntax error : no viable alternative for "@"

I am trying to insert a map into cassandra using datastax driver . The map has value Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz If i try to use the Query Builder to insert the value i get the Syntax error stating no viable character for "@". If i…
Ananth
  • 971
  • 9
  • 23
0
votes
1 answer

OSGi compatible DataStax Core Bundle

I am currently trying to convert the datastax core java driver to OSGi equivalent bundle but keep getting errors. The version I am using is com.datastax.cassandra
Masti
  • 151
  • 1
  • 10
0
votes
1 answer

Datastax Java driver to autodiscover all the nodes for specific datacenter in its connection pool?

I have recently started using Cassandra in our Production environment. We have a 24 node cluster with replication factor of 4. Meaning 2 copies will be there in each datacenter. So that means we have a single cross colo cluster with 24 nodes which…
arsenal
  • 23,366
  • 85
  • 225
  • 331
0
votes
1 answer

PRIMARY KEY part colname cannot be restricted by IN relation

My CQL3 table is like this CREATE TABLE stringindice ( id text, colname text, colvalue blob, PRIMARY KEY (id, colname, colvalue) ) WITH COMPACT STORAGE and I have inserted some values in it. Now when I am trying to do something like…
Easility
  • 716
  • 2
  • 8
  • 19
0
votes
1 answer

Cassandra 1.2.6 java datastax driver EXCEPTION No handler set for stream 0

i had started using datastax java driver from yesterday on latest version of cassandra 1.2.6...i cross checked start_native_transport: true is set in yaml...also my cassandra is configured with rpc_address and listen_adress as computer host…
user2572801
  • 151
  • 1
  • 2
  • 11
0
votes
1 answer

Cassandra datastax java driver ,can not connect to server "No handler set for stream"

If I create a new project like this . cluster = Cluster.builder().addContactPoint("127.0.0.1").build(); this code works. But if I take all the jars from this project and migrate the jars to my own project .the code above doesn't work and it…
DunkOnly
  • 1,682
  • 4
  • 17
  • 39
0
votes
3 answers

How to make a Cassandra connection

i want to do a connection with Cassandra with java class.But its not working .Here is my code .. import com.datastax.driver.core.Cluster; import com.datastax.driver.core.Row; import com.datastax.driver.core.Session; class CassandraConnection {…
Mandrek
  • 1,159
  • 6
  • 25
  • 55
0
votes
1 answer

Java driver for apache cassandra maven fail to build

I am trying to use Cassandra Java driver. I am getting below error when using Maven build. Multiple annotations found at this line: - ArtifactTransferException: Failure to transfer org.apache.cassandra:cassandra-thrift:jar:1.2.3 from…
0
votes
2 answers

Can not build cassandra database stress client by DataStax

Im working with my own database cluster with cassandra. I want to try some stress tests with my database, thats why i downloaded DataStax Java-driver for Cassandra. https://github.com/datastax/java-driver After I downloaded it, I got to know, that I…
tellob
  • 1,220
  • 3
  • 16
  • 32
0
votes
1 answer

Upsert/Read into/from Cassandra database using Datastax API (using new Binary protocol)

I have started working with Cassandra database. I am planning to use Datastax API to upsert/read into/from Cassandra database. I am totally new to this Datastax API (which uses new Binary protocol) and I am not able to find lot of documentations as…
arsenal
  • 23,366
  • 85
  • 225
  • 331
0
votes
1 answer

Cassandra running out of memory

I've set up a 3-node cluster (Cassandra 1.2.1) and a column family with a replication factor of 3. The Column family is called metric_hour and hold 15-second average values for one hour with column names: account name metric name value type…
Joachim H. Skeie
  • 1,893
  • 17
  • 27
1 2 3
66
67