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
0 answers

EC2 snitch problems with Consistency

I tried to deploy an application for the first time in EC2. I had three instances of cassandra in the same region with an EC2 snitch. I used datastax java driver for application connectivity. At keyspace level, i configured NetworkTopology Strategy.…
Ananth
  • 971
  • 9
  • 23
0
votes
1 answer

Not able to connect to remote cassandra

I am trying to access Cassandra(2.1.0) installed on my machine from other machine using my ip address. Here is how I am trying to do it in other machine: Cluster cluster = Cluster.builder().addContactPoint("192.168.3.51").build(); Session session =…
Prasanth
  • 1,005
  • 5
  • 19
  • 39
0
votes
2 answers

Cassandra stops during large inserts

I am inserting data in cassandra from a csv file using java driver.But after some inserts it throws NoHostAvailableException:java 65 :All host(s) tried for query failed (no host was tried). I am having cassandra on client machine…
0
votes
0 answers

Facing issue with large number of connections open in cassandra

Datastax driver: We are running into a serious issue of holding up lot of connections. We have no clue where these connections are created. I will first tell you about my context: We use datastax driver to connect to Cassandra. We just create one…
0
votes
1 answer

Trying to understand Replication/Consitency Factors

(cassandra noob) I have been doing some basic config/perf tests to and try an get a better understanding of how cassandra works, and was a bit suprised at the results. My tests essentially do: (multi-threaded (each thread simply doing an insert),…
0
votes
1 answer

Spring Cassandra vs. Astyanax performance

I am trying to evaluate the performance of Astyanax and Spring Cassandra. However I did write up a program to measure insertion and read time. It turned out that with large data Astyanax showed up to 600 times faster insertion rate than Spring…
0
votes
0 answers

Periodically receive "InvalidQueryException: unconfigured columnfamily documents"

We have an app that is basically polling periodically for changes every 1 minute, using Datastax c* driver 2.0.4 (also tried 2.1.0-beta1). We create a Session at app startup, specifying the keyspace, e.g. Session session =…
0
votes
1 answer

Cassandra:Add multiple record using DataStaxDriver

I am using cassandra 1.2.1. and datastax java driver 1.0.4 I have to add multiple record. I am doing as below PreparedStatement statement = session.prepare("INSERT INTO domainCqlTables.PostPhotos(profile_id, post_id, image_id, image,…
Manish Kumar
  • 10,214
  • 25
  • 77
  • 147
0
votes
1 answer

error during lightweight transaction in Cassandra using java driver?

Here is my method to create table if it does not exists. session.execute( "CREATE TABLE simplex.songs (" + "id uuid PRIMARY KEY," + "title text," + "album…
brain storm
  • 30,124
  • 69
  • 225
  • 393
0
votes
1 answer

How to Increase Transaction per second(TPS) in cassandra by using DataStax java Driver

The setup: 2-node Cassandra 2.0.7.31 cluster replicas=1 DataStax java driver 2.0 Problem I am using Datastax java driver for load balancing. I and generating 50000+ thread load by Jmeter but getting very low TPS. near about 1700 tps I have…
0
votes
2 answers

Datastax java driver is creating more TCP connection as the number of client request is increasing

I am doing load testing on Cassandra By using JMeter. After systematically increasing the load, I can see that more than 58000 Active connection has been established by the driver with different node of cassandra. I have started with 500 and added…
0
votes
1 answer

All the TCP connection b/w DataStax driver to the Cassandra Remain in Active close state . i.e TIME_WAIT state.

The setup: Web server Apache Tomcat RestFull web services Using DataStax java driver 2.0 Database -2-node Cassandra 2.0.7.31 cluster -replicas=1 Problem After sending set of 1500 request more than three times. I got error at the tomcat log …
0
votes
2 answers

Why cassandra/cql restrict to use where clause on a column that not indexed?

I have a table as follows in Cassandra 2.0.8: CREATE TABLE emp ( empid int, deptid int, first_name text, last_name text, PRIMARY KEY (empid, deptid) ) when I try to search by: "select * from emp where first_name='John';" cql shell…
Arosha
  • 81
  • 1
  • 6
0
votes
0 answers

Cassandra slow insertion

I am using java datastax client to insert data into cassandra. Right now I am iterating through list of objects and inserting row by row. There are different amount of rows for each case, but speed is unacceptable for me. Could you please suggest…
Wild Goat
  • 3,509
  • 12
  • 46
  • 87
0
votes
2 answers

Cassandra - monitoring connectivity between multiple data centers

Let's assume we have 3 geographically distributed data centers A,B,C. In each of these, a Cassandra cluster is up and running. Now assume DC A can no longer gossip with B and C. Writes to A with LOCAL_QUORUM, would still be satisfied - but they…
David Semeria
  • 542
  • 3
  • 15