Search code examples
javacassandranodetool

Querying Cassandra for node statuses within Java


I'd like to query Cassandra for the information retrieved with a nodetool status command in a Java application. Is this possible or do I have to run nodetool and parse the output?


Solution

  • Not possible in current versions to get that information over cql. There will be a ring state in system_views keyspace in future but in current versions its impossible. You have to either use JMX like nodetool or run nodetool and parse the output.