cassandra-3.0

Cassandra gives no data even if data exists

江枫思渺然 提交于 2020-01-16 00:38:18
问题 I have a keyspace with replication factor of 3. I am inserting data into Cassandra (4 node cluster with single data center) with write consistency level one. After completion of insertions I am reading data with consistency level quorum (2). But I am not getting data sometimes even if data exists, after some time I am getting data with same query. I don't know why Cassandra behaves like this. My column family schema CREATE TABLE input_data_profile.input_log_profile_1 ( cid text, ctdon bigint,

ttl in cassandra creating tombstones

我们两清 提交于 2020-01-14 02:21:06
问题 I am only doing inserts to cassandra. While inserting , not nulls are only inserted to avoid tombstones. But few records are inserted with TTL. But then doing select count(*) from table gives following errors - Read 76 live rows and 1324 tombstone cells for query SELECT * FROM xx.yy WHERE token(y) >= token(fc872571-1253-45a1-ada3-d6f5a96668e8) LIMIT 100 (see tombstone_warn_threshold) Do TTL inserts lead to tombstones in cassandra 3.7 ? How can the warning be mitigated ? There are no updates

How is sorting done in cassandra? [closed]

拜拜、爱过 提交于 2020-01-07 05:29:27
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am a newbie in Cassandra. Does Cassandra follow any specified sorting algorithm like bubble sort , binary sort , etc.? If not, How does it sort in order by command? 回答1: It doesn't, or at least it shouldn't. In Cassandra you build your data model around your use cases. So if you

Data Structure in Cassandra

允我心安 提交于 2020-01-06 05:48:25
问题 Is there a way to read the SSTable in Cassandra? I see from the documentation that sstabledump is an enterprise version, Is it possible to get the trial version of sstabledump? Or is there a way to read the SSTable using the existing utilities in Cassandra/bin folder? 回答1: sstabledump is also available in apache cassandra. It can be found in tools/bin directory in cassandra 3.x Note: sstable2json was replaced by sstabledump in 3.0 回答2: You can use sstable2json for that. http://docs.datastax

Digest request in Cassandra

给你一囗甜甜゛ 提交于 2020-01-05 06:42:20
问题 I have few questions regarding the digest request, I read through the docs and the following informations are not up to the point, 1) Lets say I have 10 node cluster with the RF =3 and RC = 2, Also for understanding let the Replicas be Node 1, Node 2 and Node 3 and Coordinator be Node 4. For the read request, As per my understanding first coordinator (Node 4) sends the direct request to one of the node with the lower latency (Dynamic snitch) say Node 1 and gets the data, then after receiving

Cassandra node is taking hours to join

别等时光非礼了梦想. 提交于 2020-01-05 03:09:08
问题 My cluster of size 2 had entered into somewhat inconsistent state. On one node (call it node A) nodetool status was correctly showing 2 nodes. While on another node (call it B) it was showing only one i.e. itself. After several attempts I could not fixed the issue. So I decommissioned node B. But nodetool status on node A was still showing the node B that to in UN state. I had to restart cassandra on node A so that it forget node B. But this has lead to another problem. I am making new node

How do I load a lot of data at once in a Cassandra “cluster” of one node?

北城以北 提交于 2020-01-03 03:11:10
问题 I am working on a multi website system which uses Cassandra to handle all of its data needs. When I first install a website, it adds 3918 pages (and growing) with many fields, attachments such as JS files, links between pages, etc. At some point, my test "cluster" (one node) decides that the data is coming to fast and it times out or worst, Cassandra "crashes" because of an out of memory (OOM). More or less, from what I can see the 2Gb of RAM allocated by Cassandra fills up and then, more

Chinese language in Cassandra

淺唱寂寞╮ 提交于 2019-12-29 09:59:08
问题 I used the chinese letters in Cassandra and it seems the data is entered properly like below, SELECT * FROM user; user_id | user_name | user_phone ---------+--------------+------------- 23 | uSer23, | 12345678910 5 | uSer5^ | 12345678910 28 | uSer28名 | 12345678910 10 | uSer10- | 12345678910 16 | uSer16{ | 12345678910 13 | uSer13= | 12345678910 30 | uSer30一些 | 12345678910 11 | uSer11_ | 12345678910 1 | uSer1@ | 12345678910 19 | uSer19" | 12345678910 8 | uSer8( | 12345678910 0 | uSer0! |

Sum aggregation for each columns in cassandra

橙三吉。 提交于 2019-12-29 09:31:46
问题 I have a Data model like below, CREATE TABLE appstat.nodedata ( nodeip text, timestamp timestamp, flashmode text, physicalusage int, readbw int, readiops int, totalcapacity int, writebw int, writeiops int, writelatency int, PRIMARY KEY (nodeip, timestamp) ) WITH CLUSTERING ORDER BY (timestamp DESC) where, nodeip - primary key and timestamp - clustering key (Sorted by descinding oder to get the latest), Sample data in this table, SELECT * from nodedata WHERE nodeip = '172.30.56.60' LIMIT 2;

Error when running cassandra on Google Cloud on external ip - Failed to bind port 9042 on 34.89.109.98

让人想犯罪 __ 提交于 2019-12-29 02:12:46
问题 I am trying to make Cassandra run on Google Cloud using external ip of the VM. But I am getting error Failed to bind port 9042 on 34.89.109.98 . As far as I can see, I have followed the rules of setting firewall rules but I am still not able to resolve the issue. I have attached the pics of my configuration for your reference. 1) The firewall rule is 2) The list of all the rules is 3) The VM is More Information I followed the steps in https://linuxize.com/post/how-to-install-apache-cassandra