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

有帮助吗?

解决方案

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

data_center
-------------
datacenter1 
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top