Sergii Zagriichuk Sergii Zagriichuk - 1 year ago 94
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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download