view raw
Sergii Zagriichuk Sergii Zagriichuk - 6 months ago 43
Java Question

Cassandra: how to get all hosts from cluster?

Are there possibility to get all hosts from cassandra claster via client API. I know that we can use nodetool for rign all nodes from console, and NodeCmd for JMX access for the same functionality, but I need just a list of hosts and ips, like ConnectionPool for Hector Client API


You can call the describe_ring Thrift method, or (in 1.2) SELECT * FROM system.peers