398
questions
0
votes
1
answer
59
views
cqlsh cannot connect to some nodes in the cluster
cqlsh connection shows below error for couple of machine, but it is successful in other machines in cluster. Bad nodes were removed out of cluster, system_auth replication is 5 for both dc's with ...
1
vote
1
answer
91
views
am unable to to the database using cqlsh
I have a cassandra db 1.21 installed on windows 2019, am unable to to the database using cqlsh
enter image description here
Able to start the cassandra db
enter image description here
when i run cqslh ...
1
vote
1
answer
91
views
Read timeout error after Cassandra upgraded from 2.2.19 to 3.11.13
I have two dc cluster, where one dc was upgraded from Cassandra 2.2.19 to 3.11.13. Currently I notice cql timeout reported after the upgrade on the Cassandra 3.x DC. The other dc which is on version 2....
1
vote
1
answer
254
views
NoSuchMethodError: org.apache.cassandra.db.ColumnFamilyStore.getOverlappingSSTables
I have upgraded one of cluster node from 2.2.19 to 3.11.13, but I'm continuously getting the below error in system logs. I'm using TimeWindowCompactionStrategy-3.7.jar
Please let me know how can I fix ...
0
votes
1
answer
117
views
Cassandra : map map<text, text> datatype of UDT to SortedDictionary in .Net
I am using cassandra DB for .Net.
I have created a datatype dictionary_type_property map<text,text> inside user defined datatype, but facing problem while converting this datatype value to .Net ...
0
votes
0
answers
19
views
How do I enable DML logging in Cassandra 2.1?
How to enable logging DML(inserts, updates), DDL (alter, create) operations in cassandra version 2.1?
nodetool getlogginglevels
Logger Name Log Level
ROOT ...
1
vote
2
answers
167
views
Hints during cassandra version upgrade from 2.1.17 to 3.0.15
I was trying to upgrade 4 nodes in a Cluster.
DC1 had nodes N1 and N2
DC2 had nodes N3 and N4
App server is connected to N1 and N2 nodes.
RF = {DC1: 2, DC: 2}
DC2 nodes where upgraded to 3.0.15 first. ...
0
votes
1
answer
571
views
Running Cassandra 2.1.17 on Java 11
I am trying to get Cassandra v2.1.17 running using Java 11 (Oracle), but cannot get it to startup. I have updated all the JVM args in cassandra-env.sh to the Java 11 equivalents, but I now get the ...
3
votes
1
answer
4k
views
JVM 11 GC log rotation : Initialization of output 'file=/var/log/cassandra/gc.log' using options '(null)' failed
I am trying to update some older JVM GC log rotation options to be compatible with Java 11. Previously, using Java 8 I had:
-Xloggc:/var/log/cassandra/gc.log"
-XX:+UseGCLogFileRotation"
-XX:...
0
votes
1
answer
256
views
Can i do logical Query inside Blob column field in cassandra Query?
Can i do logical Query inside Blob column field in cassandra Query ?
like i have a file inside Blob field called purchase amount : 500$ i want to do search and fetch results purchase amount which is ...
0
votes
2
answers
767
views
How do you nest a UDT inside another UDT in Cassandra?
I have created the following user defined types (UDT) in cassandra :
CREATE TYPE keyspace.location (
latitude text,
longitude text,
accuracy text,
address text
);
CREATE TYPE keyspace....
1
vote
1
answer
337
views
Querying on cassandra consumes CPU
Connecting to Cassandra from application code and querying consumes Cassandra's CPU.
My query is like :: select fields from table where partition_key = "PARTITION_KEY" and clustering_key_1 = "KEY1" ...
1
vote
1
answer
140
views
Cassandra read consistency is one, but node connects to another node
3 node cluster and RF of 3 means every node has all the data. Consistency is ONE.
So when queried for some data on node-1, ideally as node-1 has all the data it should be able to complete my query.
...
0
votes
1
answer
214
views
How to migrate existing columns data to new column in Cassandra database?
I need to save user's quiz completion status to a Cassandra's table, previously table was designed only to hold one quiz status so I can't save if the user takes another quiz(User id is primary key). ...
1
vote
1
answer
513
views
Cassandra nodes are continuously throwing this error
I have 6 nodes Cassandra cluster where 3 are data nodes and 3 are seed nodes
they all are using Cassandra version 3.7
below are the exceptions which I am getting on data nodes :
java.lang....
0
votes
1
answer
184
views
Cassandra Read Consistency when write path fail
I am new to cassandra and trying to figure out how cassandra provides consistency in case of failed writes. Consider following scenario where CL is QUORUM, in which case 2 out of 3 replicas must ...
3
votes
2
answers
1k
views
How do I properly set up the Cassandra client in Javascript?
Right now, I'm running a docker with Cassandra on it. I have a javascript file that sits outside the docker that needs to connect to Cassandra. I've found a node package that interfaces w/ JS, called ...
0
votes
1
answer
390
views
How to run Spring Data Cassandra 2.2.1 with Cassandra 2.1.9?
I've developed a new application with Spring Data Cassandra 2.2.1 and want to run it against a Cassandra 2.1.9 server (old, I know). But we get the error
com.datastax.driver.core.exceptions....
1
vote
1
answer
854
views
How write in cassandra works in terms of commitlog_segment_size_in_mb?
We caught the error "Mutation of 17156436 bytes is too large for the maximum size of 16777216" in Cassandra.
I understand, we should increase the commitlog_segment_size_in_mb to 64 mb as mutation ...
1
vote
0
answers
1k
views
How to configure Fluentd configuration file for sending logs to Kafka?
I've been working to create a syslog application in which I have to collect different kinds of logs generated using Fluentd and send them to Cassandra for analysis later on. I have to use Kafka as a ...
0
votes
1
answer
66
views
Can I change workload on a Datastax enterprise cluster?
I'm running DSE 4.8.16 cluster with search configured. Can I change the workload from 'search' to only running dse cassandra? And if so, how is it done?
0
votes
0
answers
356
views
Cassandra timeout during read query at consistency LocalQuorum
We recently started noticing "Cassandra timeout during read query at consistency LocalQuorum (1 replica(s) responded over 2 required)" errors on our servers and are attempting to resolve this but are ...
0
votes
1
answer
183
views
Cassandra Replication Factor
Lets say I have two Data Centers(DC1, DC2) in a Single Cassandra cluster.
DC1 - 4 nodes.
DC2 - 4 nodes.
Initially i have set the replication factor for all the keyspaces to be {DC1:2 , DC2:2}.(...
1
vote
1
answer
27
views
How to Restore 2 DC cluster, 3 Node on each cluster to 1 DC and 3 node cluster
Please let me know how can we restore 2 DC cluster ( 3 node on each cluster ) to 1 DC cluster ( 3 node only). We also wants some specific keyspace to be restore on 1 DC cluster ( 3 node).
Thanks in ...
1
vote
1
answer
658
views
How to connect Cassandra over ssl using connection properties(url properties)
I have truststore and keystore files and every information related to the cassandra account. There is a limitation with the application that i use to connect to cassandra as it doesn't provide me the ...
0
votes
1
answer
97
views
Can we use the Common Name in TLS certificates for authorization in Cassandra
I have defined roles and permission in the Cassandra tables as defined in the documentation.
I am using client side authentication to provide access to the Cassandra DB. However, I want to use the CN (...
0
votes
1
answer
114
views
Cassandra - Create a "read" version of a table in another cluster
I currently have two Cassandra Clusters (name it cluster A and cluster B) with different topologies. I have a table (named MY_TABLE) that is in cluster A.
Is there any way to create a replicated ...
2
votes
2
answers
4k
views
Major compaction on Cassandra after changing gc_grace_seconds 10 to 0 day
I have a Cassandra cluster which is having gc_grace_seconds 10 days. auto compaction is enabled and running as per configuration but I am suspecting that auto compaction is not clearing the tombstones ...
1
vote
0
answers
66
views
In cassandra udf i am parsing date as saumya.text2dt('2019-01-16 13:10:44.000') and output is like 2019-10-16 07:30:00.000000+0000
My Cassandra User defined function:-
CREATE OR REPLACE FUNCTION text2dt ( input text )
RETURNS NULL ON NULL INPUT
RETURNS timestamp
LANGUAGE java
AS '
java.text.SimpleDateFormat sdf = new java.text....
0
votes
2
answers
970
views
How much free disk space is needed for compaction?
According to this article: http://thelastpickle.com/blog/2017/03/16/compaction-nuance.html
"It looks at the the total space used by all sstables, adds it up, and
checks it against available disk ...
0
votes
1
answer
70
views
Any UI log monitoring tool for cassandra system.log?
I am just looking any UI based tool to monitor cassandra system.log so that we could analyze and extract errors efficiently. if any please let me know the steps to configure.
0
votes
0
answers
58
views
Cassandra performance benchmarks on HDD storage
Can anyone kindly share the performance benchmark for Cassandra on traditional HDD? Interested in the details of the impact and best practices associated with the same.
Assuming 3X the Read traffic ...
1
vote
1
answer
2k
views
Exception encountered during startup - Emptied cassandra.yaml file
Am using Cassandra 2.1.13
As part of some execution when C* was actually starting up and while C* start process was not complete, in mid of this operation the machine got rebooted.
Strangely the C* ...
3
votes
2
answers
3k
views
How to find large partition in cassandra except system.log?
How can we find large partitions on our cassandra cluster before came into system.log? we are facing some performance issue due to this. Can anyone help me. We have cassandra version 2.0.11 and 2.1.16....
0
votes
1
answer
452
views
date column which is a text type in Cassandra.so I need a UDF to convert that text to timestamp so I can query on that column
I have writeen code like belo but getting error as below:-
InvalidRequest: Error from server: code=2200 [Invalid query] message="Java source compilation failed: Line 1: java.util.String cannot ...
0
votes
0
answers
75
views
How to use pithos to store video files into cassandraDB and the data is replicated into another node in another machine
Currently, I have 2 different PC running ubuntu 16.04, and both pc have cassandra node that is listening to each other and replicating data.
I came across http://pithos.io and found out that it helps ...
4
votes
2
answers
471
views
what are the difference between the data back up using nodetool and cqlsh copy command?
Currently we have two options to take data back up of the tables in a Cassandra keyspace. We can either user nodetool commands or use the copy command from the cqlsh terminal.
1) What are the ...
0
votes
1
answer
714
views
Failing Cassandra INSERT and UPDATE statements - Unexpected Exception
I've recently been getting the following error on the system.log files on both my production and demo clusters. Each cluster has 2 nodes and replication factor is 2. No changes have been made to my ...
0
votes
1
answer
1k
views
Frame size (352518912) larger than max length (15728640)! Exception while running sstableloader
I’m trying to migrate data between two clusters on different networks. Ports: 7001,7199,9046,9160 are open between them. But port:7000 is not open. When I run sstableloader command, got the following ...
0
votes
0
answers
864
views
Cassandra shutting down because of org.apache.cassandra.io.FSWriteError: java.nio.file.NoSuchFileException
Canssandra (2.1.13) on startup throwing "org.apache.cassandra.io.FSWriteError: java.nio.file.NoSuchFileException"
Here is the stacktrace:
ERROR [MemtableFlushWriter:1] 2018-10-22 03:24:41,191
...
0
votes
0
answers
296
views
Cassandra Partitioning: collisions in partitioning key in a table
We know that nodes in Cassandra hold tokens. So in a 4 nodes cluster say node1 is 25, node2 is 50, node3 is 75 and node4 is 100. This also means that node1 is responsible for the range 0-25. Now this ...
0
votes
0
answers
35
views
Hampered read latency of all column families in Cassandra
I was trying to read the data from 100 partitions of one of the column family of Cassandra from Spark and it has 150-200 MB partition size. So, when I try to run this SparkJob on this column family ...
0
votes
0
answers
317
views
Cassandra: Inconsistent data on reads (LOCAL_QUORUM)
We're seeing inconsistent data while doing reads on cassandra. Here are the details:
It's is a wide column table. The columns can be added my multiple machines, and read by multiple machines. The ...
0
votes
0
answers
96
views
Fails on Running Cassandra Server
This is the error information I get:
Full Product Version :
Fails on java version. It's Java "1.8.0_181"
Os Version : Ubuntu 16.04 LTS
EXTRA RELEVANT SYSTEM CONFIGURATION :
Just installed Cassandra 2....
0
votes
1
answer
25
views
Physical Datacenter Resilience
I am deploying Apache Cassandra to sit behind an application which has consistency level hard coded to "QUORUM". There is a requirement to have the C* cluster survive a total physical DC failure, and ...
1
vote
1
answer
633
views
Frequent Spikes in Cassandra write latency
In Production cluster , the Cluster Write latency frequently spikes from 7ms to 4Sec. Due to this clients face a lot of Read and Write Timeouts. This repeats in every few hours.
Observation:
Cluster ...
1
vote
1
answer
150
views
Adding EC2 Cassandra Nodes to my already running premise Apache Cassandra Cluster
Here is my use case:
I have a single DC Cassandra cluster(3 nodes) with RF 2. This Cluster is running on my on-premises DC. Here is my question, I am hoping to add 3 EC2 nodes into this cluster and ...
2
votes
1
answer
1k
views
Replacing a seed node without removing it from seed list
I have a cassandra(version 2.2.8) cluster of total 6 nodes, where 3 nodes are seed nodes. One of the seed node recently went down. I need to replace that dead seed node. My cluster is setup in a way ...
2
votes
1
answer
146
views
what is right practice to use Cassandra table as key-value Pair. And to perform bulk read and write on this Table
I want to create a key-value datastore where key is a url and value is around 0.5 MB data. Application requirement is to write and read about 10-20K key-values at a time which are coming from a file. ...
0
votes
1
answer
321
views
How can I store data for compiling leaderboards?
Firslty I'd like to note that I currently only using 1 node because it handles my current needs just fine. And also, I'm using nodejs for all of this.
Now, here's my issue. There's a cassandra table "...