Question

How can I get the name of the datacenter in cqlsh? It's required for the constructor of DCAwareRoundRobinPolicy.

Was it helpful?

Solution

cqlsh> use system;
cqlsh:system> select data_center from local;

data_center
-------------
datacenter1 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top