Kassandra: how to identify and enumerate nodes containing a specific string (replica)?

Installation Information: I have two DataCenters with 5 nodes in each DC.

I understand that each row inserted in a table is stored based on the data splitting scheme used; generates the necessary replicas and stores them on other nodes (selects nodes based on the replication strategy) in the cluster. Given a row, is there a way to find and list all the nodes containing this row / replica?

thanks

Chethan

+6
source share
1 answer

run this on one of the cassandra nodes:

nodetool -h localhost getendpoints <keyspace> <cf> <key> 

for printing the endpoints to which the key belongs

+16
source

Source: https://habr.com/ru/post/947689/


All Articles