cassandra-2.2

Handle different restore scenarios with Cassandra 2.2

别等时光非礼了梦想. 提交于 2020-01-15 09:33:31
问题 I have a Cassandra 3-node cluster and a keyspace created with a replication_factor of 3. I make my backups for this keyspace with nodetool snapshot . As recommended by Cassandra documentation, to make a global backup I start it with a cron job on each node (3 nodes are NTP synchronized). I'm not using incremental snapshots, it's always a new global snapshot. Unfortunately, I've some troubles with the restore process. First of all, I've set a replication factor to 3 (and QUORUM level of

Audit log in Cassandra 2.2.8 community edition

房东的猫 提交于 2019-12-25 11:59:29
问题 Is there any way to log queries along with user that executed the query in Cassandra community edition? I'm looking for a Server level solution, not driver/client based solution Thanks! 回答1: Try nodetool settraceprobability nodetool settraceprobability <value> Sets the probability for tracing a request. Value is a probability between 0 and 1. Tracing a request usually requires at least 10 rows to be inserted. A probability of 1.0 will trace everything whereas lesser amounts (for example, 0.10

High Native-Transport-Requests All time Blocked

删除回忆录丶 提交于 2019-12-22 07:05:54
问题 After running tpstats on all nodes. I see a lot of nodes having high number of ALL TIME BLOCKED NTR. We have a 4 node cluster and the values for NTR ALL TIME BLOCKED are : NODE 1: 23953 NODE 2: 2935 NODE 3: 15229 NODE 4: 5951 I know ALL TIME BLOCKED is bad and hence worried as to what I am doing wrong. 回答1: This pool handles cql requests, so it is the number of active CQL requests allowed. Its limited to prevent too many active ones from OOMing your system (ie each returning large blobs).

How can I create a local multi-node Cassandra cluster on Windows 7 64 bit?

自作多情 提交于 2019-12-17 13:40:14
问题 I am looking for a set of instructions to create a local multi-node Cassandra 2.x cluster on a Window 7 64 bit PC. It should preferably use CCM “Cassandra Cluster Manager” and allow management using DataStax OpsCenter I followed the instructions in “Getting Started with Apache Cassandra on Windows the Easy Way” but they are for a single node cluster. EDIT: I got stuck on deploying OpsCenter agents on each node using CCM, any ideas? 回答1: Articles used for this tutorial: CCM 2.0 and Windows

High Native-Transport-Requests All time Blocked

青春壹個敷衍的年華 提交于 2019-12-05 10:18:55
After running tpstats on all nodes. I see a lot of nodes having high number of ALL TIME BLOCKED NTR. We have a 4 node cluster and the values for NTR ALL TIME BLOCKED are : NODE 1: 23953 NODE 2: 2935 NODE 3: 15229 NODE 4: 5951 I know ALL TIME BLOCKED is bad and hence worried as to what I am doing wrong. This pool handles cql requests, so it is the number of active CQL requests allowed. Its limited to prevent too many active ones from OOMing your system (ie each returning large blobs). This effectively applies backpressure to your client application to slow down. Unfortunately if you have small

Unexpected exception during request

↘锁芯ラ 提交于 2019-12-01 09:50:31
I'm using apache cassandra 2.2.4 . I have a 4 (four) node cluster with Replication Factor 3 in DC1 and Replication Factor 1 in DC2, where DC1 contains 3 (three) nodes and DC2 contains 1 (one) node. There were some more nodes before in this cluster, but for some reason I removed them and didn't altered the replication scenario. [Please consider that the following IP's are not original] Datacenter: DC1 =============== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID Rack UN 21.12.19.91 4.08 GB 256 ? a45bb676-1ddd-4b22-933b-58653cea680f RAC1 UN 21.12.19.92

Unexpected exception during request

£可爱£侵袭症+ 提交于 2019-12-01 06:11:16
问题 I'm using apache cassandra 2.2.4 . I have a 4 (four) node cluster with Replication Factor 3 in DC1 and Replication Factor 1 in DC2, where DC1 contains 3 (three) nodes and DC2 contains 1 (one) node. There were some more nodes before in this cluster, but for some reason I removed them and didn't altered the replication scenario. [Please consider that the following IP's are not original] Datacenter: DC1 =============== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens

What is the batch limit in Cassandra?

亡梦爱人 提交于 2019-11-28 09:00:49
I have a Java client that pushes (INSERT) records in batch to Cassandra cluster. The elements in the batch all have the same row key, so they all will be placed in the same node. Also I don't need the transaction to be atomic so I've been using unlogged batch. The number of INSERT commands in each batch depends on different factors, but can be anything between 5 to 50000. First I just put as many commands as I had in one batch and submitted it. This threw com.datastax.driver.core.exceptions.InvalidQueryException: Batch too large . Then I used a cap of 1000 INSERT per batch, and then down to

How can I create a local multi-node Cassandra cluster on Windows 7 64 bit?

旧时模样 提交于 2019-11-27 15:25:38
I am looking for a set of instructions to create a local multi-node Cassandra 2.x cluster on a Window 7 64 bit PC. It should preferably use CCM “Cassandra Cluster Manager” and allow management using DataStax OpsCenter I followed the instructions in “ Getting Started with Apache Cassandra on Windows the Easy Way ” but they are for a single node cluster. EDIT: I got stuck on deploying OpsCenter agents on each node using CCM, any ideas? Articles used for this tutorial: CCM 2.0 and Windows Cassandra Wiki - Windows Development Setting up a multi-node Cassandra cluster on a single Windows machine

What is the batch limit in Cassandra?

给你一囗甜甜゛ 提交于 2019-11-27 02:34:27
问题 I have a Java client that pushes (INSERT) records in batch to Cassandra cluster. The elements in the batch all have the same row key, so they all will be placed in the same node. Also I don't need the transaction to be atomic so I've been using unlogged batch. The number of INSERT commands in each batch depends on different factors, but can be anything between 5 to 50000. First I just put as many commands as I had in one batch and submitted it. This threw com.datastax.driver.core.exceptions