I need to retrieve information about cluster's datacenters with their nodes. I need to do that using datastax java driver. So I can not invoke say "nodetool status" and parse its output.
I have tried to query system.peers table (SELECT peer,data_center FROM system.peers), but it doesn't return me actual information about all peers and datacenters. It contains only partial list of nodes belonging to one of the datacenters.
Is any way to do that?