Scylla University Live | Nov 9 (AMERICAS), Nov 10 (EMEA and APAC) Free Virtual Training Event
Learn More
Menu

Nodetool getendpoints

getendpoints - <keyspace> <table> <key>- Print the end-points IP or name of the nodes that own the partition key.

Use this command to know which node holds the specific partition key.

For example:

nodetool getendpoints nba player_name Russell

Parameter

Description

keyspace

keyspace name

table

table name

key

partition key

In a case of a composite partition key, use : between columns in the key. All columns in the partition key are required. For example:

cqlsh:mykeyspace> CREATE TABLE superheroes (firstname text, lastname text, age int, PRIMARY KEY ((firstname, lastname)));
nodetool getendpoints mykeyspace superheroes "peter:parker"

Scylla does not support getendpoints for a partition key with a frozen UDT.

Nodetool Reference