cassandra-2.1

How to prevent Cassandra commit logs filling up disk space

僤鯓⒐⒋嵵緔 提交于 2019-12-01 03:59:37
I'm running a two node Datastax AMI cluster on AWS. Yesterday, Cassandra started refusing connections from everything. The system logs showed nothing. After a lot of tinkering, I discovered that the commit logs had filled up all the disk space on the allotted mount and this seemed to be causing the connection refusal (deleted some of the commit logs, restarted and was able to connect). I'm on DataStax AMI 2.5.1 and Cassandra 2.1.7 If I decide to wipe and restart everything from scratch, how do I ensure that this does not happen again? You could try lowering the commitlog_total_space_in_mb

Read & write data into cassandra using apache flink Java API

时光怂恿深爱的人放手 提交于 2019-11-30 09:19:33
问题 I intend to use apache flink for read/write data into cassandra using flink. I was hoping to use flink-connector-cassandra, I don't find good documentation/examples for the connector. Can you please point me to the right way for read and write data from cassandra using Apache Flink. I see only sink example which are purely for write ? Is apache flink meant for reading data too from cassandra similar to apache spark ? 回答1: I had the same question, and this is what I was looking for. I don't

How to get Last 6 Month data comparing with timestamp column using cassandra query?

限于喜欢 提交于 2019-11-29 18:13:42
How to get Last 6 Month data comparing with timestamp column using cassandra query? I need to get all account statement which belongs to last 3/6 months comparing with updatedTime(TimeStamp column) and CurrentTime . For example in SQL we are using DateAdd() function tor this to get. i dont know how to proceed this in cassandra. If anyone know,reply.Thanks in Advance. Cassandra 2.2 and later allows users to define functions (UDT) that can be applied to data stored in a table as part of a query result. You can create your own method if you use Cassandra 2.2 and later UDF CREATE FUNCTION monthadd