Scylla University Live | July 28 & 29 Free Virtual Training Event
Learn More >

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




keyspace name


table name


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