Hi,

If I need to get the replication factor of a given keyspace in nodetool 
commands (e.g. status), how can I do that? I'm trying to figure it out for a 
JIRA item I'm working on.

I tried using the below:
Keyspace keyspace = Keyspace.open(keyspaceName);
Int rf = keyspace.getReplicationStrategy().getReplicationFactor()

However, it runs into some issues since internally something doesn't get 
initialized while looking up keyspaces/metatadata.

Any ideas on how I can approach it differently?

Thanks,
Preetika

Reply via email to