Questions tagged [datastax]

DataStax Enterprise is big data platform consisting of open source tools such as Apache, Cassandra, Solr and Hadoop (and several others).

DataStax Astra simplifies cloud-native application development, and reduces time to deploy Apache Cassandra and scale from days to minutes. DataStax Astra eliminates the operational overhead of using Apache Cassandra, the open-source NoSQL database behind the largest applications in the world. Learn more on datastax.com/dev about new APIs for REST, schemaless document-style JSON, and GraphQL APIs for Cassandra - available with the Astra cloud service and stargate.io for standalone Cassandra.

For those who prefer self-managed technology, DataStax Enterprise (DSE) is a big data platform that provides a version of Cassandra enhanced with enterprise security features and that adds support for more workload types such as graph, search, and analytics. DataStax Enterprise enables companies to build transformational data architectures for applications, microservices and experiences that require data sovereignty, availability, scale, agility, and accessibility by any user.

2409 questions
14
votes
7 answers

Operation Time Out Error in cqlsh console of cassandra

I have a three nodes Cassandra Cluster and I have created one table which has more than 2,000,000 rows. When I execute this (select count(*) from userdetails) query in cqlsh, I got this error: OperationTimedOut: errors={},…
Kaushal
  • 3,237
  • 3
  • 29
  • 48
13
votes
2 answers

Cassandra Allow filtering

I have a table as below CREATE TABLE test ( day int, id varchar, start int, action varchar, PRIMARY KEY((day),start,id) ); I want to run this query Select * from test where day=1 and start > 1475485412 and start < 1485785654 and…
Bharathi
  • 451
  • 1
  • 6
  • 17
13
votes
3 answers

Datastax Java Driver does not connect if one host is missing

If I am not wrong, one can connect to a Cassandra cluster knowing at least one of the nodes that is in the cluster, and then the others can be discovered. Lets say I have three nodes (1, 2 and 3) and I connect to those nodes like…
Pablo Matias Gomez
  • 6,614
  • 7
  • 38
  • 72
13
votes
4 answers

get Year from java.util.Date

I have a date column in a Cassandra column family. When I retrieve data from this CF using datastax java API, this date object can be taken as a java.util.Date object. It has a getYear() method but it is deprecated. The corresponding javadoc…
Chamila Wijayarathna
  • 1,815
  • 5
  • 30
  • 54
12
votes
2 answers

What is the byte size of common Cassandra data types - To be used when calculating partition disk usage?

I am trying to calculate the the partition size for each row in a table with arbitrary amount of columns and types using a formula from the Datastax Academy Data Modeling Course. In order to do that I need to know the "size in bytes" for some common…
nicgul
  • 237
  • 1
  • 2
  • 10
12
votes
4 answers

cassandra cql shell window got disappears after installation in windows

cassandra cql shell window got disappears after installation in windows? this was installed using MSI installer availalbe in planet cassandra. Why this happens ? please help me.. Thanks in advance.
12
votes
2 answers

What is role of bloom filter in cassandra?

From two different links of the Cassandra's documentation, I found: link 1 A structure stored in memory that checks if row data exists in the memtable before accessing SSTables on disk and link2 Cassandra checks the Bloom filter to discover…
Mayank Raghav
  • 640
  • 1
  • 7
  • 17
12
votes
2 answers

How should I check if resultset is empty or null using datastax cassandra driver for java

How should I check for an empty resultset using datastax java cassandra driver? Suppose I'm executing the following query "SELECT * FROM my_table WHERE mykey=something" there is a great chance that the query will not be matched. The following code…
dtrihinas
  • 446
  • 1
  • 4
  • 11
12
votes
1 answer

How to pass TTL in Cassandra Java Driver QueryBuilder?

I am using the QueryBuilder in the Cassandra Java driver to insert some data. There seems to be no easy option to set the TTL on the row I am inserting. None of the examples on the DataStax site show an example with TTL. I suspect it has something…
Jacek Furmankiewicz
  • 1,143
  • 1
  • 13
  • 22
11
votes
2 answers

Unsupported literal type class scala.runtime.BoxedUnit

I am trying to filter a column of a dataframe read from oracle as below import org.apache.spark.sql.functions.{col, lit, when} val df0 = df_org.filter(col("fiscal_year").isNotNull()) When I do it I am getting below…
BdEngineer
  • 2,929
  • 4
  • 49
  • 85
11
votes
3 answers

Datastax DevCenter freezes on startup

Just installed (copied over the app from the downloaded dmg) DevCenter 1.6 on my mac, running macOs Sierra 10.12.6 with jdk 8u152 installed. The application loads a UI (splash screen then a couple of checkboxes in a window for getting started) but…
0cd
  • 1,729
  • 3
  • 15
  • 24
11
votes
2 answers

Cassandra : Batch write optimisation

I get bulk write request for let say some 20 keys from client. I can either write them to C* in one batch or write them individually in async way and wait on future to get them completed. Writing in batch does not seem to be a goo option as per…
Peter
  • 2,719
  • 4
  • 25
  • 55
11
votes
1 answer

Cassandra commit log clarification

I have read over several documents regarding the Cassandra commit log and, to me, there is conflicting information regarding this "structure(s)". The diagram shows that when a write occurs, Cassandra writes to the memtable and commit log. The…
Jim Wartnick
  • 1,974
  • 1
  • 9
  • 19
11
votes
2 answers

Is Cassandra for OLAP or OLTP or both?

Cassandra does not comply with ACID like RDBMS but CAP. So Cassandra picks AP out of CAP and leaves it to the user for tuning consistency. I definitely cannot use Cassandra for core banking transaction because C* is slightly inconsistent. But…
11
votes
5 answers

TaskSchedulerImpl: Initial job has not accepted any resources;

Here is what I am trying to do. I have created two nodes of DataStax enterprise cluster,on top of which I have created a java program to get the count of one table (Cassandra database table). This program was built in eclipse which is actually from…
sandeep
  • 387
  • 1
  • 4
  • 12