nodetool

How to read the cassandra nodetool histograms percentile and other columns?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 01:39:09
问题 How to read the cassandra nodetool histograms percentile and other coulmns? Percentile SSTables Write Latency Read Latency Partition Size Cell Count (micros) (micros) (bytes) 50% 1.00 14.24 4055.27 149 2 75% 35.00 17.08 17436.92 149 2 95% 35.00 24.60 74975.55 642 2 98% 86.00 35.43 129557.75 770 2 99% 103.00 51.01 186563.16 770 2 Min 0.00 2.76 51.01 104 2 Max 124.00 36904729.27 12359319.16 924 2 回答1: They show the distribution of the metrics. For example, in your data the write latency for 95%

error on /127.0.0.1 connection (com.datastax.driver.core.TransportException: [/127.0.0.1] Unexpected exception triggered), no more host to try

耗尽温柔 提交于 2019-12-11 00:58:59
问题 I am trying to connect Cassandra with Java under Windows Environment. Following are application/OS/lib version. -Windows 7 -Java 7 -Cassandra 2.1.12 Code: Cluster clst; Session ses; clst= Cluster.builder().addContactPoint("127.0.0.1").withPort(9042).build(); Cassandra and nodetool is running. Below is the status of nodetool. C:\Program Files\DataStax Community\apache-cassandra\bin>nodetool -h localhost status Starting NodeTool Datacenter: datacenter1 ======================== Status=Up/Down |/

Is there a way to see token ranges for each node in cassandra which uses vnodes?

ⅰ亾dé卋堺 提交于 2019-12-10 23:19:43
问题 Is there a way to see token ranges for each node in cassandra which used vnodes? I dont want to see token for each node which you get by issuing nodetool ring. I just want to see the token ranger for each node which uses vnodes. 回答1: The token ranges for a given node will be a function of a keyspace's topology. Programmatically you can use the java-driver for this using Cluster.getMetadata().getTokenRanges(keyspace, host). The following code example shows retrieving all token ranges by host

Understanding “Number of keys” in nodetool cfstats

早过忘川 提交于 2019-12-10 14:24:25
问题 I am new to Cassandra, in this example i am using a cluster with 1 DC and 5 nodes and a NetworkTopologyStrategy with replication factor as 3. Keyspace: activityfeed Read Count: 0 Read Latency: NaN ms. Write Count: 0 Write Latency: NaN ms. Pending Tasks: 0 Table: feed_shubham SSTable count: 1 Space used (live), bytes: 52620684 Space used (total), bytes: 52620684 SSTable Compression Ratio: 0.3727660543119897 Number of keys (estimate): 137984 Memtable cell count: 0 Memtable data size, bytes: 0

Cassandra 1.2.x to 2.x data center rebuild

耗尽温柔 提交于 2019-12-08 04:32:18
问题 I'm trying to upgrade from Cassandra 1.2.x to 2.x. The way I normally do upgrades is by bringing up a new data center (this is on EC2, so not much of an issue) and using nodetool rebuild to move the data over to the new data center. Then switch apps over to the new data center, repair, and then shut down the old data center. However I am having some trouble with this going from 1.2.15.1 to 2.0.7.31. On the 2.x nodes when I run nodetool rebuild us-east-1-2-15-1 , instead of starting the

Cassandra - How to remove a dead node

∥☆過路亽.° 提交于 2019-12-07 02:22:58
问题 Cassandra version 1.2.9. Five node cluster, but one of the nodes is down with hardware failure and repair/replacement ETA is unknown. I want to decommission/remove the down node (the notifications are cluttering all logs). nodetool removenode seems to be perfect, except it requires a host ID. The down node has no host ID (listed as null in status): It appears that removetoken is no longer an option for nodetool. What is the proper way to remove this dead node? 回答1: The question is for older

Cassandra - How to remove a dead node

亡梦爱人 提交于 2019-12-05 07:23:26
Cassandra version 1.2.9. Five node cluster, but one of the nodes is down with hardware failure and repair/replacement ETA is unknown. I want to decommission/remove the down node (the notifications are cluttering all logs). nodetool removenode seems to be perfect, except it requires a host ID. The down node has no host ID (listed as null in status): It appears that removetoken is no longer an option for nodetool. What is the proper way to remove this dead node? The question is for older version of cassandra. But the official solution should apply for any version of cassandra - https://docs

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

北战南征 提交于 2019-12-04 04:35:31
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 - Thrift API version: 20.1.0 INFO [main] 2017-08-14 13:03:46,409 StorageService.java:555 - CQL supported

How to read the cassandra nodetool histograms percentile and other columns?

只愿长相守 提交于 2019-12-01 20:36:31
How to read the cassandra nodetool histograms percentile and other coulmns? Percentile SSTables Write Latency Read Latency Partition Size Cell Count (micros) (micros) (bytes) 50% 1.00 14.24 4055.27 149 2 75% 35.00 17.08 17436.92 149 2 95% 35.00 24.60 74975.55 642 2 98% 86.00 35.43 129557.75 770 2 99% 103.00 51.01 186563.16 770 2 Min 0.00 2.76 51.01 104 2 Max 124.00 36904729.27 12359319.16 924 2 They show the distribution of the metrics. For example, in your data the write latency for 95% of the requests were 24.60 microseconds or less. 95% of the partitions are 642 bytes or less with 2 cells.

how do i know if nodetool repair is finished

此生再无相见时 提交于 2019-11-28 19:33:19
I have a 2 node apache cassandra (2.0.3) cluster with rep factor of 1. I change rep factor to 2 using the following command in cqlsh ALTER KEYSPACE "mykeyspace" WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 2 }; I then tried to run recommended "nodetool repair" after doing this type of alter. The problem is that this command sometimes finishes very quickly. When it does finishes like that it will normally say 'Lost notification...' and exit code is not zero. So I just repeat this 'nodetool repair' until it finishes without error. I also check that 'nodetool status'