nodetool

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

Cassandra nodetool cfstats - Read Count is always 0

不羁岁月 提交于 2021-01-28 04:09:31
问题 I've got a problem with monitoring my Cassandra node. I ran nodetool cfstats keyspaceName.tableName Unfortunately Read Count is always 0 and Read Latency is NaN. I am doing reads and writes but only writes metrics are updated. Here is what I got as an output: Starting NodeTool Keyspace: realtimetrader Read Count: 0 Read Latency: NaN ms. Write Count: 402 Write Latency: 0.09648756218905473 ms. Pending Flushes: 0 Table: currencies SSTable count: 1 Space used (live): 5254 Space used (total): 5254

Cassandra cleanup on several servers at once

倖福魔咒の 提交于 2020-01-13 10:37:08
问题 We have a big Cassandra cluster 18 Servers (on one server near 5T data ) http://docs.datastax.com/en/cassandra/2.0/cassandra/operations/ops_add_node_to_cluster_t.html - We have added a new nodes following this documentation . After we have added new servers, we began the process of cleaning data (nodetool cleanup) In the documentation advise: After all new nodes are running, run nodetool cleanup on each of the previously existing nodes to remove the keys no longer belonging to those nodes.

Unable to gossip with any seeds but continuing since node is in its own seed list

亡梦爱人 提交于 2020-01-01 09:16:13
问题 To remove a node from 2 node cluster in AWS I ran nodetool removenode <Host ID> After this I was supposed to get my cluster back if I put all the cassandra.yaml and cassandra-rackdc.properties correctly. I did it but still, I am not able to get back my cluster. nodetool status is displaying only one node. significant system.log on cassandra is : INFO [main] 2017-08-14 13:03:46,409 StorageService.java:553 - Cassandra version: 3.9 INFO [main] 2017-08-14 13:03:46,409 StorageService.java:554 -

Unable to gossip with any seeds but continuing since node is in its own seed list

隐身守侯 提交于 2020-01-01 09:15:22
问题 To remove a node from 2 node cluster in AWS I ran nodetool removenode <Host ID> After this I was supposed to get my cluster back if I put all the cassandra.yaml and cassandra-rackdc.properties correctly. I did it but still, I am not able to get back my cluster. nodetool status is displaying only one node. significant system.log on cassandra is : INFO [main] 2017-08-14 13:03:46,409 StorageService.java:553 - Cassandra version: 3.9 INFO [main] 2017-08-14 13:03:46,409 StorageService.java:554 -

How can we set nodetool and cqlsh to be run from anywhere and by any user on linux server

无人久伴 提交于 2019-12-25 07:58:26
问题 I am trying to setup environment variables so that any user on a particular server can run commands like nodetool or cqlsh from any where in linux file system . The effort to traverse to bin directory everytime should be saved . How can we achieve this ? My DSE 4.8 is a tarball install . 回答1: Nodetool is usually available to any user that has execution privileges in your linux boxes For cqlsh, you can set any configuration inside the cqlshrc file (usually found in $HOME/.cassandra/cqlshrc; we

Cassandra compaction tasks number keep growing

夙愿已清 提交于 2019-12-22 12:42:14
问题 I`m using Cassandra dsc 2.1.5 with 3 nodes, and the following table description: cqlsh> DESCRIBE TABLE mykeyspace.mytable; CREATE TABLE mykeyspace.mytable ( a text, b text, c timestamp, d timestamp, e text, PRIMARY KEY ((a, b), c) ) WITH CLUSTERING ORDER BY (c ASC) AND bloom_filter_fp_chance = 0.01 AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}' AND comment = '' AND compaction = {'min_threshold': '4', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max

How to know the size of a keyspace and column family in Cassandra?

主宰稳场 提交于 2019-12-20 11:55:10
问题 Recently I've started working on Grails integration with Cassandra using the Java driver for cassandra(cassandra-driver-core-2.0.2). So I was curious to know how we can find out how much size our table is taking to store the data in cassandra DB. I have created a keyspace with name Customkeyspace and a column family called Movie in it. So I was curious to know which tool/Command I have to use to know the size of the keyspace/Column family ? 回答1: To get statistics regarding column families in