cassandra

what are cqlsh tracing entries meaning?

不打扰是莪最后的温柔 提交于 2021-02-07 19:14:16
问题 activity | timestamp | source | source_elapsed ------------------------------------------------------------------------------------------------------+--------------+---------------+---------------- execute_cql3_query | 06:30:52,479 | 192.168.11.23 | 0 Parsing select adid from userlastadevents where userid = '90000012' and type in (1,2,3) LIMIT 10000; | 06:30:52,479 | 192.168.11.23 | 44 Peparing statement | 06:30:52,479 | 192.168.11.23 | 146 Executing single-partition query on userlastadevents

Cassandra Error message: Not marking nodes down due to local pause. Why?

£可爱£侵袭症+ 提交于 2021-02-07 06:12:11
问题 I have 6 nodes, 1 Solr, 5 Spark nodes, using datastax. My cluster is on a similar server to Amazon EC2, with EBS volume. Each node has 3 EBS volumes, which compose a logical data disk using LVM. In my OPS center the same node frequently becomes unresponsive, which leads to a connect time out of my data system. My data amount is around 400GB with 3 replicas. I have 20 streaming jobs with batch interval every minute. Here is my error message: /var/log/cassandra/output.log:WARN 13:44:31,868 Not

How to migrate data from Cassandra cluster of size N to a different cluster of size N+/-M

蓝咒 提交于 2021-02-07 02:56:54
问题 I'm trying to figure out how to migrate data from one cassandra cluster, to another cassandra cluster of a different ring size...say from a 5 node cluster to a 7 node cluster. I started looking at sstable2json, since it creates a json file for the SSTable on that specific cassandra node. My thought was to do this for a column family on each node in the ring. So on a 5 node ring, this would give me 5 json files, one file for the data stored on in the column family that resides on each node.

Check CQL version with Cassandra and cqlsh?

独自空忆成欢 提交于 2021-02-05 20:47:39
问题 How do you check which cql version is currently being used in cqlsh? In sql, you do this: Select @@version 回答1: There are a couple of ways to go about this. From within cqlsh, you can simply show version . aploetz@cqlsh> show version [cqlsh 5.0.1 | Cassandra 2.1.8 | CQL spec 3.2.0 | Native protocol v3] However, that only works from within cqlsh. Fortunately, you can also query system.local for that information as well. aploetz@cqlsh> SELECT cql_version FROM system.local; cql_version ---------

Delete records in Cassandra table based on time range

随声附和 提交于 2021-02-05 06:49:46
问题 I have a Cassandra table with schema: CREATE TABLE IF NOT EXISTS TestTable( documentId text, sequenceNo bigint, messageData blob, clientId text PRIMARY KEY(documentId, sequenceNo)) WITH CLUSTERING ORDER BY(sequenceNo DESC); Is there a way to delete the records which were inserted between a given time range? I know internally Cassandra must be using some timestamp to track the insertion time of each record, which would be used by features like TTL. Since there is no explicit column for

Clarifications about nodetool repair -pr

半腔热情 提交于 2021-02-04 15:09:21
问题 From the documentation: Using the nodetool repair -pr (–partitioner-range) option repairs only the primary range for that node, the other replicas for that range still have to perform the Merkle tree calculation, causing a validation compaction. Because all the replicas are compacting at the same time, all the nodes may be slow to respond for that portion of the data . There is probably never a time where I can accept all nodes to be slow for a certain portion of the data. But I wonder: Why

Clarifications about nodetool repair -pr

半世苍凉 提交于 2021-02-04 15:08:32
问题 From the documentation: Using the nodetool repair -pr (–partitioner-range) option repairs only the primary range for that node, the other replicas for that range still have to perform the Merkle tree calculation, causing a validation compaction. Because all the replicas are compacting at the same time, all the nodes may be slow to respond for that portion of the data . There is probably never a time where I can accept all nodes to be slow for a certain portion of the data. But I wonder: Why

Clarifications about nodetool repair -pr

早过忘川 提交于 2021-02-04 15:07:59
问题 From the documentation: Using the nodetool repair -pr (–partitioner-range) option repairs only the primary range for that node, the other replicas for that range still have to perform the Merkle tree calculation, causing a validation compaction. Because all the replicas are compacting at the same time, all the nodes may be slow to respond for that portion of the data . There is probably never a time where I can accept all nodes to be slow for a certain portion of the data. But I wonder: Why

Invalid initial heap size -Xms4096M [duplicate]

夙愿已清 提交于 2021-02-04 06:29:26
问题 This question already has answers here : JAVA invalid maximum heap size. The specified size exceeds the maximum representable size (2 answers) Closed 1 year ago . I'm trying to run Cassandra on my computer, but I keep getting the following error message: Invalid initial heap size: -Xms4096M The specified size exceeds the maximum representable size. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Anyone know why and how to fix this? I

go cassandra 示例 1

拜拜、爱过 提交于 2021-02-04 02:33:39
官方示例 实际项目示例 https://my.oschina.net/u/3896587/blog/4943875 package main import ( "fmt" "github.com/gocql/gocql" "time" ) func main() { // connect to the cluster var session *gocql.Session var cluster *gocql.ClusterConfig var err error cluster = gocql.NewCluster() cluster.Keyspace = "demo11" hosts := []string{"127.0.0.1:9042"} cluster.Hosts=hosts cluster.ProtoVersion = 4 cluster.ConnectTimeout = 2 * time.Duration(time.Second) cluster.Timeout = 2 * time.Duration(time.Second) cluster.Consistency = gocql.Quorum cluster.NumConns=10 cluster.Consistency = gocql.One session, err = cluster.CreateSession